仅支持设此待办人员取消

This commit is contained in:
kuaifan 2022-07-07 14:45:22 +08:00
parent 72a38f4b45
commit 2af899cfea

View File

@ -308,6 +308,9 @@ class WebSocketDialogMsg extends AbstractModel
if (in_array($this->type, ['tag', 'todo', 'notice'])) {
return Base::retError('此消息不支持社待办');
}
if ($this->todo && $this->todo != $sender) {
return Base::retError('仅支持设此待办人员【' . User::userid2nickname($this->todo) . '】取消');
}
$before = $this->todo;
$this->todo = $before ? 0 : $sender;
$this->save();