12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace app\admin\model\system;
- use crmeb\traits\ModelTrait;
- use crmeb\basic\BaseModel;
- class SystemGroup extends BaseModel
- {
-
- protected $pk = 'id';
-
- protected $name = 'system_group';
- use ModelTrait;
-
- public static function getField($id){
- $fields = json_decode(self::where('id',$id)->value("fields"),true)?:[];
- return compact('fields');
- }
- }
|