添加商学院分类获取
This commit is contained in:
parent
d809be4dbd
commit
a51de4c967
@ -11,13 +11,11 @@ class BusinessSchoolLogic extends Logic
|
||||
public static function category()
|
||||
{
|
||||
try {
|
||||
$model = new BusinessSchoolCategory();
|
||||
return $model->field(['id', 'name'])
|
||||
return BusinessSchoolCategory::field(['id', 'name'])
|
||||
->where([
|
||||
['del', '=', 0],
|
||||
['is_show', '=', 1]
|
||||
])->order('order asc')->select()->toArray();
|
||||
|
||||
])->order('sort asc')->select()->toArray();
|
||||
} catch (\Exception $e) {
|
||||
return ['error'=>$e->getMessage()];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user