feat: 添加待办完成状态的支持

This commit is contained in:
kuaifan
2025-08-01 12:26:58 +08:00
parent e792ab7b4d
commit 5fb1bd4175
5 changed files with 55 additions and 28 deletions

View File

@@ -545,6 +545,7 @@ class DialogController extends AbstractController
//
if ($list->isNotEmpty()) {
$list->transform(function (WebSocketDialogMsg $item) {
$item->todo_done = $item->isTodoDone();
$item->next_id = 0;
$item->prev_id = 0;
return $item;
@@ -2387,6 +2388,7 @@ class DialogController extends AbstractController
$msg->webSocketDialog?->pushMsg('update', [
'id' => $msg->id,
'todo' => $msg->todo,
'todo_done' => $msg->isTodoDone(true),
'dialog_id' => $msg->dialog_id,
]);
}