feat:修改签名host

This commit is contained in:
2026-04-08 14:21:51 +08:00
parent 2d7ea7e5c8
commit 3d52d443e9
2 changed files with 15 additions and 15 deletions

View File

@@ -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

Binary file not shown.