Procházet zdrojové kódy

修改了获取后台配置微信版本号接口--需同步至线上避免mqtt相关参数无鉴权泄漏

dedsudiyu před 1 dnem
rodič
revize
8d6fff5a59

+ 0 - 6
pages/views/login/accountLogin.vue

@@ -254,12 +254,6 @@
 					uni.setStorageSync('mqttUser', Decrypt(obj.mqttExtranetUser))
 					//MQTT密码
 					uni.setStorageSync('mqttPassword', Decrypt(obj.mqttExtranetPassword))
-					//版本号
-					if(config.weChatProgramVersion === obj.weChatProgramVersion){
-						uni.setStorageSync('weChatProgramVersion', true)
-					}else{
-						uni.setStorageSync('weChatProgramVersion', false)
-					}
 					//文件浏览环境
 					uni.setStorageSync('fileBrowseEnvironment','http://'+Decrypt(obj.fileBrowseEnvironment))
 					uni.setStorageSync('fileBrowseEnvironmentExtranet','https://'+Decrypt(obj.fileBrowseEnvironmentExtranet))

+ 3 - 1
pages/views/login/login.vue

@@ -58,7 +58,7 @@
 				const {
 					data
 				} = await configInfo({
-					type: '5'
+					type: '4'
 				});
 				if (data.code == 200) {
 					let list = JSON.parse(data.data)
@@ -72,8 +72,10 @@
 					})
 					if(config.weChatProgramVersion === newData.weChatProgramVersion){
 						this.$set(this,'weChatProgramVersion',true);
+						uni.setStorageSync('weChatProgramVersion', true)
 					}else{
 						this.$set(this,'weChatProgramVersion',false);
+						uni.setStorageSync('weChatProgramVersion', false)
 					}
 				}
 			},

+ 0 - 6
pages/views/login/ssoCertification.vue

@@ -193,12 +193,6 @@
 					uni.setStorageSync('mqttUser', Decrypt(obj.mqttExtranetUser))
 					//MQTT密码
 					uni.setStorageSync('mqttPassword', Decrypt(obj.mqttExtranetPassword))
-					//版本号
-					if(config.weChatProgramVersion === obj.weChatProgramVersion){
-						uni.setStorageSync('weChatProgramVersion', true)
-					}else{
-						uni.setStorageSync('weChatProgramVersion', false)
-					}
 					//文件浏览环境
 					uni.setStorageSync('fileBrowseEnvironment','http://'+Decrypt(obj.fileBrowseEnvironment))
 					uni.setStorageSync('fileBrowseEnvironmentExtranet','https://'+Decrypt(obj.fileBrowseEnvironmentExtranet))