[http.ts] 默认使用测试服务器的盐;[config.ts] 默认连接到测试服务器
This commit is contained in:
@@ -7,7 +7,7 @@ export default {
|
||||
'/home/market',
|
||||
'/home/profile',
|
||||
],
|
||||
baseURL: 'https://server.vic.yuanjin.net/v1',
|
||||
baseURL: 'https://server4test.vic.yuanjin.net/v1',
|
||||
// baseURL: 'http://yapi.faronear.org/mock/20/v1',
|
||||
linkAndroid: 'https://vic.yuanjin.net/app/vic.apk',
|
||||
linkIOS: 'https://vic.yuanjin.net/webapp',
|
||||
@@ -15,5 +15,6 @@ export default {
|
||||
linkTelegram: 'https://t.me/vichome',
|
||||
linkWechat: 'https://weixin.qq.com/g/AT997GKdoc9WnieL',
|
||||
linkEmail: 'team-vic@outlook.com',
|
||||
linkHomeweb: 'https://vic.yuanjin.net',
|
||||
linkSupport: 'essilk',
|
||||
};
|
||||
|
||||
@@ -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