fix: 修复了拉人进群无法踢出去的问题

This commit is contained in:
kuaifan 2025-03-24 21:33:04 +08:00
parent 8fe1e2fee4
commit a0cd79e587
3 changed files with 6 additions and 4 deletions

View File

@ -221,6 +221,7 @@ class Project extends AbstractModel
'important' => 1
], function () use ($userid) {
return [
'important' => 1,
'bot' => User::isBot($userid) ? 1 : 0,
];
});

View File

@ -1201,6 +1201,7 @@ class ProjectTask extends AbstractModel
'important' => 1
], function () use ($userid) {
return [
'important' => 1,
'bot' => User::isBot($userid) ? 1 : 0,
];
});

View File

@ -447,10 +447,10 @@ class WebSocketDialog extends AbstractModel
WebSocketDialogUser::updateInsert([
'dialog_id' => $this->id,
'userid' => $value,
], $updateData, function() use ($value) {
return [
'bot' => User::isBot($value) ? 1 : 0,
];
], $updateData, function() use ($value, $updateData) {
return array_merge($updateData, [
'bot' => User::isBot($value) ? 1 : 0
]);
}, $isInsert);
if ($isInsert) {
WebSocketDialogMsg::sendMsg(null, $this->id, 'notice', [