添加商学院分类获取

This commit is contained in:
wangxiaowei 2024-09-21 10:54:10 +08:00
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()];
}