Просмотр исходного кода

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

liuzejian 1 год назад
Родитель
Сommit
bfcd2f3b86
1 измененных файлов с 2 добавлено и 2 удалено
  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
                             'b.user_id' => $uid
                         ]);
                         ]);
                 })->where([
                 })->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();
                 ])->select('b.nick_name', 'b.authorizer_appid')->get();
             $tags = \json_decode($obj->tags, true);
             $tags = \json_decode($obj->tags, true);
             $tags['gzh_appids'] = $gzhInfo->pluck('authorizer_appid')->toArray();
             $tags['gzh_appids'] = $gzhInfo->pluck('authorizer_appid')->toArray();
@@ -141,7 +142,6 @@ class UserGroupController extends CatchController
     public function add(Request $request){
     public function add(Request $request){
         $this->validate($request, [
         $this->validate($request, [
             'name' => 'required|string|max:64',
             'name' => 'required|string|max:64',
-            'gzh_ids' => 'required|array',
             'tags' => 'required|array',
             'tags' => 'required|array',
             'remark' => 'nullable|string|max:140'
             'remark' => 'nullable|string|max:140'
         ]);
         ]);