xhr测试
Some checks failed
build / Build (push) Failing after 10s
test / Run tests (push) Failing after 10s

This commit is contained in:
2025-02-05 18:01:59 +08:00
parent 8dd5bdaa56
commit 65b231911e
11 changed files with 199 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ import { Message, MessageConnect } from "./server";
export async function sendMessage(msg: Message, action: string, data?: any): Promise<any> {
const res = await msg.sendMessage({ action, data });
LoggerCore.getInstance().logger().debug("sendMessage", { action, data, res });
LoggerCore.getInstance().logger().debug("sendMessage", { action, data, response: res });
if (res && res.code) {
console.error(res);
return Promise.reject(res.message);