solupro 5 jaren geleden
bovenliggende
commit
c68e38a583
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      protected/controllers/TgController.php

+ 1 - 1
protected/controllers/TgController.php

@@ -69,7 +69,7 @@ class TgController extends BaseController {
         $alreadySync = $objGroup->objTable->getCount(['tg_group_id' => $tgGroupId]);
 
         // 未绑定的群
-        $groupIds = (new UserGroup())->objTable->getCol(['user_id' => $meeChatId, 'is_admin' => 1, 'state' => UserGroup::STATE_IN_GROUP]);
+        $groupIds = (new UserGroup())->objTable->getCol(['user_id' => $meeChatId, 'is_admin' => 1, 'state' => UserGroup::STATE_IN_GROUP], ['_field' => 'group_id']);
         $groups = $objGroup->objTable->getAll(['group_id' => $groupIds, 'tg_group_id' => 0], [
             '_field' => 'group_id, group_title, group_name',
             '_sortKey' => 'group_id DESC',