重新定义模型

This commit is contained in:
2017-06-11 22:28:37 +08:00
parent fa979a5382
commit ac1e6a634f
19 changed files with 465 additions and 434 deletions

View File

@@ -174,8 +174,7 @@ class Admin extends Base {
$model = \think\Loader::model('Model');
$list = array();
$map = array(
'status' => array('gt', 0),
'extend' => array('gt', 0),
'status' => array('gt', 0)
);
$list = $model::where($map)->field("name,id,title,icon,'' as 'style'")->select();