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