From 5154221658f586cd62e9e5c9ddbe400bfa32f2fa Mon Sep 17 00:00:00 2001
From: qinbo <qinbo@shsening.com>
Date: 星期一, 27 十二月 2021 12:31:55 +0800
Subject: [PATCH] 遮罩 bug fix
---
js/index.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/js/index.js b/js/index.js
index 3e66010..fae3128 100644
--- a/js/index.js
+++ b/js/index.js
@@ -17,7 +17,7 @@
//鏈夌埗绾�
request = $.extend(request, haoutil.system.getRequest(window.top));
}
- // debugger;
+
try {
var jwtstr = request.JWT;
var strs_ = jwtstr.split('.');
@@ -25,6 +25,7 @@
var jwt_payload_ = new buffer.Buffer(strs_[1].toString('base64'), 'base64').toString();
var payload_ = JSON.parse(jwt_payload_);
mars3d.global_variables.userid = payload_.userid;
+ mars3d.global_variables.regionCode = payload_.divcode;
var hash = CryptoJS.HmacSHA256(strs_[0] + '.' + strs_[1], "sxyd");
var hashInBase64 = base64UrlEncode(hash);
@@ -50,6 +51,7 @@
}
// mars3d.global_variables.userid = request?.userid || 2;
+ regionCode = mars3d.global_variables.regionCode
var configfile = "config/config.json"; //榛樿鍦板潃
if (request.config) {
@@ -105,7 +107,7 @@
initLayersByUserid();
- mask_selection(mars3d.global_variables.userid)
+ mask_selection(regionCode)
//濡傛灉鏈墄yz浼犲弬锛岃繘琛屽畾浣�
if (haoutil.isutil.isNotNull(request.x) && haoutil.isutil.isNotNull(request.y)) {
--
Gitblit v1.9.1