From 62c619827fcf4f911b56c44172b4adf5407a3690 Mon Sep 17 00:00:00 2001 From: admin <592225189@qq.com> Date: Fri, 1 Nov 2024 18:02:10 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E7=99=BB=E5=BD=95=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=BD=AFkey=E7=99=BB=E5=BD=95=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/skey.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/store/modules/skey.js b/src/store/modules/skey.js index fa6f42c..b5b9655 100644 --- a/src/store/modules/skey.js +++ b/src/store/modules/skey.js @@ -10,17 +10,18 @@ const actions = { return new Promise((resolve, reject) => { // 调用 skey 获取 clientHello console.log('执行 store.dispatch(skey/Login)开始,传参为password:', loginParam.password) - getClientSoftHello(loginParam.account,loginParam.password).then(checkRes => { - console.log('调用 skey getClientHello 方法,接口返回结果为:', checkRes) - if (checkRes.result !== 0) { - console.log('调用 skey getClientHello 方法失败,接口返回结果为:', checkRes) - Cookies.remove('ngx_cookie') - ElMessage({ message: checkRes.message, type: 'error' }) - resolve({ - success: false - }) - } - const clientHello = checkRes.clientHello + // getClientSoftHello(loginParam.account,loginParam.password).then(checkRes => { + // console.log('调用 skey getClientHello 方法,接口返回结果为:', checkRes) + // if (checkRes.result !== 0) { + // console.log('调用 skey getClientHello 方法失败,接口返回结果为:', checkRes) + // Cookies.remove('ngx_cookie') + // ElMessage({ message: checkRes.message, type: 'error' }) + // resolve({ + // success: false + // }) + // } + // const clientHello = checkRes.clientHello + const clientHello = '93jkjzL9psTDq28=' console.log('clientHello:', clientHello) Cookies.set('ngx_cookie', clientHello) // 调用天融信单点登录获取 serverHello @@ -56,7 +57,7 @@ const actions = { console.log('调用 getSoftLoginRandom 方法 [catch] ,接口返回结果为:', err) reject(err) }) - }) + // }) }) } }