This commit is contained in:
kuaifan
2023-12-25 22:19:56 +08:00
committed by Pang
parent 865dc61cd1
commit 8a7e80fe86
81 changed files with 993 additions and 968 deletions

View File

@@ -549,6 +549,7 @@ class WebSocketDialog extends AbstractModel
return $dialog;
}
if (!WebSocketDialogUser::whereDialogId($dialog->id)->whereUserid($userid)->exists()) {
WebSocketDialogMsgRead::forceRead($dialog_id, $userid);
throw new ApiException('不在成员列表内', ['dialog_id' => $dialog_id], -4003);
}
return $dialog;