[http.ts] 默认使用测试服务器的盐;[config.ts] 默认连接到测试服务器
This commit is contained in:
@@ -62,7 +62,7 @@ async function filter<T>(
|
||||
const matches = url.match(/(?:[/\da-zA-Z]+)/) || [''];
|
||||
const timestamp = Date.now();
|
||||
instance.defaults.headers.ts = `${timestamp}`;
|
||||
instance.defaults.headers.sig = md5(`${timestamp}${matches[0]}LimitSaltLOL8080`);
|
||||
instance.defaults.headers.sig = md5(`${timestamp}${matches[0]}TianTianShangBan`);
|
||||
const { status, data, headers } =
|
||||
await (instance[method] as (...args: any[]) => Promise<AxiosResponse<AppResp>>)(url, ...args);
|
||||
replaceId(data);
|
||||
|
||||
Reference in New Issue
Block a user