Bladeren bron

获取群主列表

houxiaohua 2 maanden geleden
bovenliggende
commit
bdca388ab2
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      app/Service/ChatGroup/ChatGroupService.php

+ 1 - 1
app/Service/ChatGroup/ChatGroupService.php

@@ -271,7 +271,7 @@ class ChatGroupService
271 271
             if(empty($accountList)) return [];
272 272
 
273 273
             $corpidList = $accountList->pluck('corpid');
274
-            $ownerList = ChatGroup::get();
274
+            $ownerList = ChatGroup::select('corpid', 'owner')->whereIn('corpid', $corpidList)->where('status', 1)->limit(50)->get();
275 275
             var_dump($ownerList);die;
276 276
             $data = [];
277 277
             foreach ($accountList as $account) {