fix: 无法操作离职的问题

This commit is contained in:
kuaifan
2022-07-15 14:47:43 +08:00
parent d23bff5a48
commit 8f42e2924d
2 changed files with 18 additions and 14 deletions

View File

@@ -711,7 +711,7 @@ class UsersController extends AbstractController
$userTransfer->start();
// 离职移出全员群组
$dialog = WebSocketDialog::whereGroupType('all')->orderByDesc('id')->first();
$dialog?->exitGroup($userInfo->userid, 'remove');
$dialog?->exitGroup($userInfo->userid, 'remove', false);
} elseif ($type === 'cleardisable') {
// 取消离职重新加入全员群组
$dialog = WebSocketDialog::whereGroupType('all')->orderByDesc('id')->first();