www.gusucode.com > Aycms自媒体建站系统PHP版 v1.0.1源码程序 > Aycms_v1.0.1/api/portal/model/PortalCategoryPostModel.php
<?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); } }