Quellcode durchsuchen

用户分群,公众号可不选择

liuzejian vor 1 Jahr
Ursprung
Commit
bfcd2f3b86
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      modules/Audience/Http/Controllers/UserGroupController.php

+ 2 - 2
modules/Audience/Http/Controllers/UserGroupController.php

@@ -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'
         ]);