Browse Source

增加环境判断

xiaohaizhao 4 days ago
parent
commit
189afb58de
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/login/modules/account.js

+ 2 - 2
pages/login/modules/account.js

@@ -110,7 +110,7 @@ Component({
 					"imagecaptcha": this.data.imagecaptcha || '',
 					"imagecaptcha": this.data.imagecaptcha || '',
 					"systemclient": "wechatsaletool"
 					"systemclient": "wechatsaletool"
 				});
 				});
-				if (res.remindchangepassword) return wx.showModal({
+				if (res.remindchangepassword && _Http.ENV === 'release') return wx.showModal({
 					title: '提示',
 					title: '提示',
 					content: '当前密码为系统初始化密码,请修改后重新登录',
 					content: '当前密码为系统初始化密码,请修改后重新登录',
 					showCancel: false,
 					showCancel: false,
@@ -152,7 +152,7 @@ Component({
 					"imagecaptcha": this.data.imagecaptcha || '',
 					"imagecaptcha": this.data.imagecaptcha || '',
 					"systemclient": "wechatsaletool"
 					"systemclient": "wechatsaletool"
 				});
 				});
-				if (res.remindchangepassword) return wx.showModal({
+				if (res.remindchangepassword && _Http.ENV === 'release') return wx.showModal({
 					title: '提示',
 					title: '提示',
 					content: '当前密码为系统初始化密码,请修改后重新登录',
 					content: '当前密码为系统初始化密码,请修改后重新登录',
 					showCancel: false,
 					showCancel: false,