协议调试

This commit is contained in:
chen wei bo
2025-09-09 00:33:29 +08:00
parent 2545aadcab
commit 8fbbca0e41
4 changed files with 25 additions and 9 deletions
@@ -25,9 +25,8 @@ export class ApiClient {
let jsonData: any;
if (ep.needsAuth && this.token) {
headers["Authorization"] = `Bearer ${this.token}`;
headers["Authorization"] = `${this.token}`;
}
// 编码
if (ep.codec === "json") {
jsonData = (ep.method === "GET") ? req : JsonCodec.encode(req);