|
|
@@ -543,7 +543,6 @@ class U8XkyServerService extends Service
|
|
|
}
|
|
|
|
|
|
public function filedCommon($data, $user, $field = []){
|
|
|
- if(empty($user['qx'])) return [false, '权限不足'];
|
|
|
$type = $data['type'] ?? null;
|
|
|
$model = Field::where('login_type', $user['login_type'])
|
|
|
->when(! empty($type), function ($query) use($type){
|
|
|
@@ -555,6 +554,7 @@ class U8XkyServerService extends Service
|
|
|
}
|
|
|
|
|
|
public function fieldList($data, $user){
|
|
|
+ if(empty($user['qx'])) return [false, '权限不足'];
|
|
|
$model = $this->filedCommon($data, $user);
|
|
|
$list = $this->limit($model,'',$data);
|
|
|
$list = $this->fillFieldData($list,$user);
|