switch to production server and salt
This commit is contained in:
@@ -7,7 +7,7 @@ export default {
|
|||||||
'/home/market',
|
'/home/market',
|
||||||
'/home/profile',
|
'/home/profile',
|
||||||
],
|
],
|
||||||
baseURL: 'https://server4test.vic.yuanjin.net/v1',
|
baseURL: 'https://server.vic.yuanjin.net/v1',
|
||||||
// baseURL: 'http://yapi.faronear.org/mock/20/v1',
|
// baseURL: 'http://yapi.faronear.org/mock/20/v1',
|
||||||
linkAndroid: 'https://vic.yuanjin.net/app/vic.apk',
|
linkAndroid: 'https://vic.yuanjin.net/app/vic.apk',
|
||||||
linkIOS: 'https://vic.yuanjin.net/webapp',
|
linkIOS: 'https://vic.yuanjin.net/webapp',
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ async function filter<T>(
|
|||||||
const matches = url.match(/(?:[/\da-zA-Z]+)/) || [''];
|
const matches = url.match(/(?:[/\da-zA-Z]+)/) || [''];
|
||||||
const timestamp = Date.now();
|
const timestamp = Date.now();
|
||||||
instance.defaults.headers.ts = `${timestamp}`;
|
instance.defaults.headers.ts = `${timestamp}`;
|
||||||
instance.defaults.headers.sig = md5(`${timestamp}${matches[0]}TianTianShangBan`);
|
instance.defaults.headers.sig = md5(`${timestamp}${matches[0]}LimitSaltLOL8080`);
|
||||||
const { status, data, headers } =
|
const { status, data, headers } =
|
||||||
await (instance[method] as (...args: any[]) => Promise<AxiosResponse<AppResp>>)(url, ...args);
|
await (instance[method] as (...args: any[]) => Promise<AxiosResponse<AppResp>>)(url, ...args);
|
||||||
replaceId(data);
|
replaceId(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user