协议调试

This commit is contained in:
chen wei bo
2025-09-09 10:31:00 +08:00
parent 8fbbca0e41
commit 52dfc3cdd3
10 changed files with 28 additions and 72 deletions
@@ -24,7 +24,7 @@ export class MockAuthService implements IAuthService {
const expireSeconds = Math.floor(Date.now() / 1000) + 7 * 24 * 3600;
// 模拟用户ID
const accId = Math.floor(Math.random() * 1000000);
const accId = (Math.floor(Math.random() * 1000000)).toString();
// 模拟 CDN 前缀
const cdn = "https://cdn.mockserver.com/";
@@ -17,7 +17,7 @@ export class MockCommonService implements ICommonService {
let data = "";
const resName = req.resName;
if (resName === "global_config") {
if (resName === "TbGlobalConfig") {
// 全局配置
data = this.getGlobalConfig();
}
@@ -5,7 +5,7 @@ import { HttpThemeService } from "./HttpThemeService";
import { MockThemeService } from "./MockThemeService";
// 模拟开关
const USE_MOCK = true;
const USE_MOCK = false;
export class ThemeService implements IThemeService {
private static _I: ThemeService | null = null;