shawenguan 2 лет назад
Родитель
Сommit
6d95fc6e9d
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      Scripts/thwj/thwjHelper.js

+ 4 - 3
Scripts/thwj/thwjHelper.js

@@ -160,9 +160,9 @@ async function checkLogin(accountData) {
         let codeStr = await tryAutoVerifyCode(base64ImgData);
         if (codeStr) {
             userInfo = await doLogin(phone, password, codeStr);
-            let isNeddExplore = await checkNeedExplore(userInfo.phone, userInfo.password, userInfo.token);
-            if (isNeddExplore) {
-                if (userInfo) {
+            if (userInfo) {
+                let isNeddExplore = await checkNeedExplore(userInfo.phone, userInfo.password, userInfo.token);
+                if (isNeddExplore) {
                     let exploreData = await doExplore(userInfo.phone, userInfo.password, userInfo.token);
                     if (exploreData) {
                         isSucc = true;
@@ -283,6 +283,7 @@ async function getVerifyCodeImg() {
 }
 
 async function tryAutoVerifyCode(base64Data) {
+    lk.log(base64Data);
     return doVerifyCodeBy345Api(base64Data);
 }