修改加密

This commit is contained in:
haozq 2024-11-14 08:49:57 +08:00
parent 11a4bbc05f
commit 61e0ce48cd
4 changed files with 21 additions and 19 deletions

View File

@ -1,7 +1,7 @@
let aqEnnable = true // 参数加密开关
//后端路径
const commonUrl = "http://27.50.49.56:8000/zhgd/";
const URL_IP="http://27.50.49.56:8000/zhgd-web"
const commonUrl = "http://11.158.16.194:21624/zhgd/";
const URL_IP="http://11.158.16.194:21624/zhgd-web"
//前端
// const URL_IP="http://127.0.0.1:63343/ah_jjzhgd_webscreen"
// const commonUrl = "http://127.0.0.1:18080/zhgd/";

View File

@ -22,7 +22,7 @@ layui.use(['layer', 'element'], function () {
$('#nav-left button').removeAttr('style')
} else if (result.code === 500) {
layer.msg(result.msg, { icon: 2 }, function () {
window.location.href = login_sc_index;
window.location.href = login_sc_page;
});
} else if (result.code === 401) {
layer.msg(result.msg, { icon: 2 }, function () {

View File

@ -76,11 +76,13 @@ function loginout(type) {
sessionStorage.removeItem("zhgd_us");
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: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:8000/zhgd-web/sc_login.html';
// }
if (zhgd_type === "2") {
window.location.href = login_sg_page;
// 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 = login_sc_page;
// 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) {
layer.msg("登出失败", { icon: 2 });
@ -106,17 +108,17 @@ function errorFn(xhr, status, error) {
/* 返回登录页 */
function backLoginPage() {
let iscId=localStorage.getItem("iscKey");
if (zhgd_type === "2") {
window.location.href = login_sg_page;
// 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';
// if (zhgd_type === "2") {
// 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: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:8000/zhgd-web/sc_login.html';
// }
} else if (zhgd_type === "1") {
window.location.href = login_sc_page;
// 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 = login_sc_page;
// 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';
}
}
//判断字符是否为空的方法
function isEmpty(obj) {

View File

@ -19,7 +19,7 @@
<script src="../../../js/publics/aes.js"></script>
<script src="../../../js/publics/aescbc.js"></script>
<script src="../../../js/publics/sm3.js"></script>
<script src="http://api.map.baidu.com/getscript?v=3.0&ak=s0zhKgClIXRG8hQp3HB4KtiXPWw1dP8B"></script>
<!-- <script src="http://api.map.baidu.com/getscript?v=3.0&ak=s0zhKgClIXRG8hQp3HB4KtiXPWw1dP8B"></script> -->
<script src="../../../api/commonRequest.js"></script>
<script src="../../../plugin/watermark.js"></script>
<title>首页</title>