From 7ef05321a0d5c4af8d4951b208fc12dbdd8472f8 Mon Sep 17 00:00:00 2001 From: yangsiqi <365841200@qq.com> Date: Tue, 6 Jun 2023 17:05:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=AD=E7=A7=BB=E5=85=8D=E5=AF=86?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/user/login/login.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/user/login/login.js b/src/pages/user/login/login.js index 5813a887..af9df144 100644 --- a/src/pages/user/login/login.js +++ b/src/pages/user/login/login.js @@ -149,6 +149,7 @@ class Login { loginName = params.getParams('loginName') ? params.getParams('loginName') : loginName; const homepage = params.getParams('homepage'); const generateType = params.getParams('generateType'); + const authCode = params.getParams('authCode'); if (window.globalConfig.loginTemplate === '骞垮窞鐧诲綍椤�' && this.props.location.pathname.indexOf('noscret') > -1) { self.getIpone().then(v => { this.gzlogin(v.data.userMobile); @@ -176,8 +177,8 @@ class Login { } else if (ddCode && loginMode === 'qywx') { // 浜戝钩鍙板拰淇℃伅鍖栭兘鏈変紒涓氬井淇★紝寰楀尯鍒�(鎺ュ彛瀹氫箟閲岄潰鍋氫簡鍒ゆ柇) self.qywxLoginIn(ddCode); - } else if (!!loginName && !!password) { - self.otherLoginIn(loginName, password); + } else if ((!!loginName && !!password) || !!authCode) { + self.otherLoginIn(loginName, password, authCode); } else if ( self.globalConfig.qrcodeData && (self.globalConfig.qrcodeData.state && self.globalConfig.qrcodeData.state === this.redirect_state) && @@ -763,7 +764,7 @@ class Login { }); } - otherLoginIn(usr, pwd) { + otherLoginIn(usr, pwd, code) { // const uesrName = decode(usr.substring(0, usr.length - 3)); // const password = decode(pwd.substring(0, pwd.length - 3)); const self = this; @@ -778,6 +779,7 @@ class Login { referer: this.globalConfig.client, skipMenuTest: 1, generateType: params.getParams('generateType') || '', + authCode: code, }) .then(response => { // self.globalConfig.layout = 'blank'; -- 2.17.1