|
@@ -53,7 +53,8 @@ class UserGroupController extends CatchController
|
|
|
'b.user_id' => $uid
|
|
|
]);
|
|
|
})->where([
|
|
|
- 'a.ug_id' => $request->input('id')
|
|
|
+ 'a.ug_id' => $request->input('id'),
|
|
|
+ 'a.is_enabled' => 1
|
|
|
])->select('b.nick_name', 'b.authorizer_appid')->get();
|
|
|
$tags = \json_decode($obj->tags, true);
|
|
|
$tags['gzh_appids'] = $gzhInfo->pluck('authorizer_appid')->toArray();
|
|
@@ -141,7 +142,6 @@ class UserGroupController extends CatchController
|
|
|
public function add(Request $request){
|
|
|
$this->validate($request, [
|
|
|
'name' => 'required|string|max:64',
|
|
|
- 'gzh_ids' => 'required|array',
|
|
|
'tags' => 'required|array',
|
|
|
'remark' => 'nullable|string|max:140'
|
|
|
]);
|