mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-30 07:30:22 +00:00
fix: 修复了拉人进群无法踢出去的问题
This commit is contained in:
parent
8fe1e2fee4
commit
a0cd79e587
@ -221,6 +221,7 @@ class Project extends AbstractModel
|
|||||||
'important' => 1
|
'important' => 1
|
||||||
], function () use ($userid) {
|
], function () use ($userid) {
|
||||||
return [
|
return [
|
||||||
|
'important' => 1,
|
||||||
'bot' => User::isBot($userid) ? 1 : 0,
|
'bot' => User::isBot($userid) ? 1 : 0,
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1201,6 +1201,7 @@ class ProjectTask extends AbstractModel
|
|||||||
'important' => 1
|
'important' => 1
|
||||||
], function () use ($userid) {
|
], function () use ($userid) {
|
||||||
return [
|
return [
|
||||||
|
'important' => 1,
|
||||||
'bot' => User::isBot($userid) ? 1 : 0,
|
'bot' => User::isBot($userid) ? 1 : 0,
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|||||||
@ -447,10 +447,10 @@ class WebSocketDialog extends AbstractModel
|
|||||||
WebSocketDialogUser::updateInsert([
|
WebSocketDialogUser::updateInsert([
|
||||||
'dialog_id' => $this->id,
|
'dialog_id' => $this->id,
|
||||||
'userid' => $value,
|
'userid' => $value,
|
||||||
], $updateData, function() use ($value) {
|
], $updateData, function() use ($value, $updateData) {
|
||||||
return [
|
return array_merge($updateData, [
|
||||||
'bot' => User::isBot($value) ? 1 : 0,
|
'bot' => User::isBot($value) ? 1 : 0
|
||||||
];
|
]);
|
||||||
}, $isInsert);
|
}, $isInsert);
|
||||||
if ($isInsert) {
|
if ($isInsert) {
|
||||||
WebSocketDialogMsg::sendMsg(null, $this->id, 'notice', [
|
WebSocketDialogMsg::sendMsg(null, $this->id, 'notice', [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user