Kaynağa Gözat

增加环境判断

xiaohaizhao 4 gün önce
ebeveyn
işleme
189afb58de
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      pages/login/modules/account.js

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

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