From 2af899cfeaa46a893b533c1a0f1bbb037ef2706d Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 7 Jul 2022 14:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=85=E6=94=AF=E6=8C=81=E8=AE=BE=E6=AD=A4?= =?UTF-8?q?=E5=BE=85=E5=8A=9E=E4=BA=BA=E5=91=98=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/WebSocketDialogMsg.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/WebSocketDialogMsg.php b/app/Models/WebSocketDialogMsg.php index 01b15fe2c..0ba6d8d22 100644 --- a/app/Models/WebSocketDialogMsg.php +++ b/app/Models/WebSocketDialogMsg.php @@ -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();