mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 12:42:51 +00:00
fix: 修复会话内加载待办为空的情况
This commit is contained in:
parent
b2b4f593ce
commit
c51135a4cc
@ -583,7 +583,7 @@ class DialogController extends AbstractController
|
|||||||
//
|
//
|
||||||
if ($reDialog) {
|
if ($reDialog) {
|
||||||
$data['dialog'] = WebSocketDialog::synthesizeData($dialog, $user->userid, true);
|
$data['dialog'] = WebSocketDialog::synthesizeData($dialog, $user->userid, true);
|
||||||
$data['todo'] = $data['dialog']->todo_num > 0 ? WebSocketDialogMsgTodo::whereDialogId($dialog->id)->whereUserid($user->userid)->whereDoneAt(null)->orderByDesc('id')->take(50)->get() : [];
|
$data['todo'] = $data['dialog']['todo_num'] > 0 ? WebSocketDialogMsgTodo::whereDialogId($dialog->id)->whereUserid($user->userid)->whereDoneAt(null)->orderByDesc('id')->take(50)->get() : [];
|
||||||
$data['top'] = $dialog->top_msg_id ? WebSocketDialogMsg::whereId($dialog->top_msg_id)->first() : null;
|
$data['top'] = $dialog->top_msg_id ? WebSocketDialogMsg::whereId($dialog->top_msg_id)->first() : null;
|
||||||
}
|
}
|
||||||
return Base::retSuccess('success', $data);
|
return Base::retSuccess('success', $data);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user