|
@@ -69,7 +69,7 @@ class TgController extends BaseController {
|
|
$alreadySync = $objGroup->objTable->getCount(['tg_group_id' => $tgGroupId]);
|
|
$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], [
|
|
$groups = $objGroup->objTable->getAll(['group_id' => $groupIds, 'tg_group_id' => 0], [
|
|
'_field' => 'group_id, group_title, group_name',
|
|
'_field' => 'group_id, group_title, group_name',
|
|
'_sortKey' => 'group_id DESC',
|
|
'_sortKey' => 'group_id DESC',
|