From 6aaafaf75445979fa5df6ab8c406779daa650f0f Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Thu, 17 Jul 2025 09:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82=E8=B7=AF?= =?UTF-8?q?=E5=9F=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/commonRequest.js | 22 +++++++++++++++++----- sgIndex.html | 3 +++ 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/api/commonRequest.js b/api/commonRequest.js index ca0a467..85973b6 100644 --- a/api/commonRequest.js +++ b/api/commonRequest.js @@ -4,12 +4,19 @@ let aqEnnable = false // 参数加密开关 // const URL_IP="http://11.158.16.194:21624/zhgd-web" // const commonUrl = "http://192.168.1.107:13030/zhgd/"; -const URL_IP="http://192.168.0.38:21624/zhgds/zhgd-web" +// const URL_IP="http://192.168.0.38:21624/zhgd-web" + +//const URL_IP="http://sgwpdm.ah.sgcc.com.cn/jjgdweb/zhgd-web" + +const URL_IP="http://sgwpdm.ah.sgcc.com.cn/ahsfs/zhgd-web" //前端 // const URL_IP="http://127.0.0.1:63343/ah_jjzhgd_webscreen" - const commonUrl = "http://192.168.0.38:13030/zhgd/"; +// const commonUrl = "http://192.168.0.38:13030/zhgd/"; + +const commonUrl = "http://sgwpdm.ah.sgcc.com.cn/zhgd/"; // const commonUrl = "http://192.168.1.105:18080/zhgd/"; - const imgUrl = "http://192.168.0.38:13030/zhgd/file/files/"; +// const imgUrl = "http://192.168.0.38:13030/zhgd/file/files/"; +const imgUrl = "http://sgwpdm.ah.sgcc.com.cn/zhgd/file/files/"; // //前端路径 // let isc_login="http://iscssotest.ah.sgcc.com.cn/isc_sso/login?service="; /* 登录相关 */ @@ -17,9 +24,14 @@ const login_url = commonUrl + "auth/login"; // 登录url const sgcc_url = commonUrl + "auth/sgccLogin"; // 登录url const login_out = commonUrl + "auth/logout"; // 登出url const page_jump = commonUrl + "auth/pageJump"; // 登出url -const back_url="http://192.168.0.38:9527/zhgd-ht/#/ywgllogin?token="; -const screen_url="http://localhost:63343/ah_jjzhgd_webscreen/pages/web/index.html";; +// const back_url="http://192.168.0.38:9527/zhgd-ht/#/ywgllogin?token="; +//后台登录地址 +const back_url="http://sgwpdm.ah.sgcc.com.cn/jjgdweb/zhgd-ht/#/ywgllogin?token="; + +// const screen_url="http://localhost:63343/ah_jjzhgd_webscreen/pages/web/index.html"; +const screen_url="http://sgwpdm.ah.sgcc.com.cn/ahsfs/zhgd-web/pages/web/index.html"; +//const screen_url="http://sgwpdm.ah.sgcc.com.cn/jjgdweb/zhgd-web/pages/web/index.html"; let SGCC_LOGIN_URL="http://sgwpdm.ah.sgcc.com.cn/"; diff --git a/sgIndex.html b/sgIndex.html index 0d7ebf9..cf82fd6 100644 --- a/sgIndex.html +++ b/sgIndex.html @@ -214,6 +214,9 @@ const tokens = urlParam.get('token'); // 输出: "value1" console.log(path) console.log(tokens) + // if(tokens==null || tokens===''){ + // window.location.href = SGCC_LOGIN_URL; + // } const params = { "token":tokens, "loginType": 2