diff --git a/api/commonRequest.js b/api/commonRequest.js index c8fe7ba..b328782 100644 --- a/api/commonRequest.js +++ b/api/commonRequest.js @@ -1,10 +1,10 @@ let aqEnnable = true // 参数加密开关 //后端路径 -// const commonUrl = "http://27.50.49.56:18080/zhgd/"; -// const URL_IP="http://27.50.49.56:21624/zhgd-web" +const commonUrl = "http://27.50.49.56:8000/zhgd/"; +const URL_IP="http://27.50.49.56:8000/zhgd-web" //前端 -const URL_IP="http://127.0.0.1:63343/ah_jjzhgd_webscreen" - const commonUrl = "http://127.0.0.1:18080/zhgd/"; +// const URL_IP="http://127.0.0.1:63343/ah_jjzhgd_webscreen" +// const commonUrl = "http://127.0.0.1:18080/zhgd/"; // //前端路径 let isc_login="http://iscssotest.ah.sgcc.com.cn/isc_sso/login?service="; /* 登录相关 */ diff --git a/js/login/login.js b/js/login/login.js index 560f586..5011789 100644 --- a/js/login/login.js +++ b/js/login/login.js @@ -1,9 +1,9 @@ let form, layer; layui.use(function () { - let logUrl="http://27.50.49.56:21624/zhgd-web/scIndex.html"; + let logUrl="http://27.50.49.56:8000/zhgd-web/scIndex.html"; let isc_login="http://iscssotest.ah.sgcc.com.cn/isc_sso/login?service="; - // window.location.href =isc_login+logUrl; - // return false; + window.location.href =isc_login+logUrl; + return false; form = layui.form; layer = layui.layer; form.on('submit(demo-login)', function (data) { diff --git a/js/login/login2.js b/js/login/login2.js index 1ea22bb..cfac33a 100644 --- a/js/login/login2.js +++ b/js/login/login2.js @@ -1,9 +1,9 @@ let form, layer; layui.use(function () { let isc_login="http://iscssotest.ah.sgcc.com.cn/isc_sso/login?service="; - let logUrl="http://27.50.49.56:21624/zhgd-web/sgIndex.html"; - // window.location.href =isc_login+logUrl; - //return false; + let logUrl="http://27.50.49.56:8000/zhgd-web/sgIndex.html"; + window.location.href =isc_login+logUrl; + return false; form = layui.form; layer = layui.layer; form.on('submit(demo-login)', function (data) { diff --git a/js/publics/public.js b/js/publics/public.js index f78d800..748ed18 100644 --- a/js/publics/public.js +++ b/js/publics/public.js @@ -77,9 +77,9 @@ function loginout(type) { sessionStorage.removeItem("zhgd_type"); let iscId=localStorage.getItem("iscKey"); if (zhgd_type === "2") { - window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:21624/zhgd-web/sg_login.html'; + window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sg_login.html'; } else if (zhgd_type === "1") { - window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:21624/zhgd-web/sc_login.html'; + window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sc_login.html'; } }); } else if (result.code === 500) { @@ -107,13 +107,13 @@ function errorFn(xhr, status, error) { function backLoginPage() { let iscId=localStorage.getItem("iscKey"); if (zhgd_type === "2") { - window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:21624/zhgd-web/sg_login.html'; + window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sg_login.html'; } else if (zhgd_type === "1") { - window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:21624/zhgd-web/sc_login.html'; + window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sc_login.html'; }else { - window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:21624/zhgd-web/sc_login.html'; + window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sc_login.html'; } } //判断字符是否为空的方法 diff --git a/scIndex.html b/scIndex.html index 8fe909a..2fd4145 100644 --- a/scIndex.html +++ b/scIndex.html @@ -223,9 +223,11 @@ }, function (result) { if (result.code === 200) { top.layer.msg(result.msg, { icon: 1, time: 500 }, function () { + let sm44=new SM4Util(); + const uss= sm44.encryptDefault_CBC(result.data.us); sessionStorage.setItem("zhgd_token", result.data.access_token); - sessionStorage.setItem("zhgd_us", result.data.us); - localStorage.setItem("iscKey", result.iscUserId); + sessionStorage.setItem("zhgd_us", uss); + localStorage.setItem("iscKey", result.iscUserId); const us = JSON.parse(result.data.us); localStorage.setItem("zhgd_type-noLogin",us.jumpType); sessionStorage.setItem("zhgd_type", us.jumpType); diff --git a/sc_login2.html b/sc_login2.html--- similarity index 100% rename from sc_login2.html rename to sc_login2.html--- diff --git a/sgIndex.html b/sgIndex.html index 4dbdff1..9821f6b 100644 --- a/sgIndex.html +++ b/sgIndex.html @@ -223,8 +223,10 @@ }, function (result) { if (result.code === 200) { top.layer.msg(result.msg, { icon: 1, time: 500 }, function () { + let sm44=new SM4Util(); + const uss= sm44.encryptDefault_CBC(result.data.us); sessionStorage.setItem("zhgd_token", result.data.access_token); - sessionStorage.setItem("zhgd_us", result.data.us); + sessionStorage.setItem("zhgd_us", uss); localStorage.setItem("iscKey", result.iscUserId); const us = JSON.parse(result.data.us); localStorage.setItem("zhgd_type-noLogin",us.jumpType); diff --git a/sg_login2.html b/sg_login2.html-- similarity index 100% rename from sg_login2.html rename to sg_login2.html--