feat: 标准化

This commit is contained in:
手瓜一十雪 committed 2025-09-20 15:20:43 +08:00
1 parent 1135089071
commit 44f6c79a24
15 files changed
+477 -800

No files matched your search

+1 -1
View File
@@ -153,7 +153,7 @@ export class OB11WebSocketClientAdapter extends IOB11NetworkAdapter<WebsocketCli
}
const retdata = await action.websocketHandle(receiveData.params, echo ?? '', this.name, this.config, {
send: async (data: object) => {
this.checkStateAndReply<unknown>({ ...OB11Response.ok(data, echo ?? '') });
this.checkStateAndReply<unknown>({ ...OB11Response.ok(data, echo ?? '', true) });
}
});
this.checkStateAndReply<unknown>({ ...retdata });