fix: echo丢失问题

This commit is contained in:
手瓜一十雪
2024-09-03 18:37:28 +08:00
parent 6699ff38a1
commit 8647c5c607
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ abstract class BaseAction<PayloadType, ReturnDataType> {
public async websocketHandle(payload: PayloadType, echo: any): Promise<OB11Return<ReturnDataType | null>> {
const result = await this.check(payload);
if (!result.valid) {
return OB11Response.error(result.message, 1400);
return OB11Response.error(result.message, 1400, echo);
}
try {
const resData = await this._handle(payload);