feat: 支持编辑已发送的消息

This commit is contained in:
kuaifan
2022-07-03 21:42:49 +08:00
parent 6b9c20bf93
commit 9c861ec58c
9 changed files with 270 additions and 154 deletions

View File

@@ -1188,7 +1188,7 @@ class ProjectTask extends AbstractModel
$this->complete_at = null;
$this->addLog("标记{任务}未完成");
if ($addMsg) {
WebSocketDialogMsg::sendMsg($this->dialog_id, 0, 'notice', [
WebSocketDialogMsg::sendMsg(null, $this->dialog_id, 'notice', [
'notice' => '标记任务未完成'
]);
}
@@ -1205,7 +1205,7 @@ class ProjectTask extends AbstractModel
$this->complete_at = $complete_at;
$this->addLog("标记{任务}已完成");
if ($addMsg) {
WebSocketDialogMsg::sendMsg($this->dialog_id, 0, 'notice', [
WebSocketDialogMsg::sendMsg(null, $this->dialog_id, 'notice', [
'notice' => '标记任务已完成'
]);
}