feat:修改签名host
This commit is contained in:
@@ -227,21 +227,21 @@ export async function generateSign(config, udid, timestamp) {
|
|||||||
const method = config.method?.toUpperCase() || 'GET';
|
const method = config.method?.toUpperCase() || 'GET';
|
||||||
|
|
||||||
// 获取host(从baseURL或当前域名) 本地启动要求host为xsynergy.gxtech.ltd
|
// 获取host(从baseURL或当前域名) 本地启动要求host为xsynergy.gxtech.ltd
|
||||||
let host = 'xsynergy.gxtech.ltd';
|
// let host = 'xsynergy.gxtech.ltd';
|
||||||
// let host = '';
|
let host = '';
|
||||||
// // console.log('请求配置:', config.baseURL)
|
// console.log('请求配置:', config.baseURL)
|
||||||
// if (config.baseURL) {
|
if (config.baseURL) {
|
||||||
// try {
|
try {
|
||||||
// const urlObj = new URL(config.baseURL);
|
const urlObj = new URL(config.baseURL);
|
||||||
// // console.log('解析baseURL成功:', urlObj);
|
// console.log('解析baseURL成功:', urlObj);
|
||||||
// host = urlObj.host;
|
host = urlObj.host;
|
||||||
// } catch (e) {
|
} catch (e) {
|
||||||
// // console.log('解析baseURL失败,使用window.location.host:', window.location);
|
// console.log('解析baseURL失败,使用window.location.host:', window.location);
|
||||||
// host = window.location.host;
|
host = window.location.host;
|
||||||
// }
|
}
|
||||||
// } else {
|
} else {
|
||||||
// host = window.location.host;
|
host = window.location.host;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// console.log('请求host:', host);
|
// console.log('请求host:', host);
|
||||||
|
|
||||||
|
|||||||
BIN
xSynergy-manage.zip
Normal file
BIN
xSynergy-manage.zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user