fix: echo丢失问题

This commit is contained in:
手瓜一十雪
2024-09-03 18:37:28 +08:00
parent 8154f6ac64
commit 7547d52d18
2 changed files with 2 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ export class OB11ActiveWebSocketAdapter implements IOB11NetworkAdapter {
this.checkStateAndReply<any>(OB11Response.error('不支持的api ' + receiveData.action, 1404, echo));
return;
}
const retdata = await action?.websocketHandle(receiveData.params, echo ?? '');
const retdata = await action.websocketHandle(receiveData.params, echo ?? '');
const packet = Object.assign({}, retdata);
this.checkStateAndReply<any>(packet);
}