协议调试
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user