PortalCategoryPostModel.php 813 字节
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: wuwu <15093565100@163.com>
// +----------------------------------------------------------------------
namespace api\portal\model;

use think\Model;

class PortalCategoryPostModel extends Model
{
    /**
     * 基础查询
     */
    protected function base($query)
    {
        $query->where('status', 1);
    }
}