shawenguan 1 год назад
Родитель
Сommit
9e80e1af09
1 измененных файлов с 9 добавлено и 5 удалено
  1. 9 5
      Scripts/168/diiiLotteryHelper.js

+ 9 - 5
Scripts/168/diiiLotteryHelper.js

@@ -226,14 +226,18 @@ async function doDragonBet(drawIssue, ranking, planStr, betAmount) {
 }
 }
 
 
 async function doTryCheckin() {
 async function doTryCheckin() {
-    let result = await loadSigninPromoDetail();
-    if (!result) {
-        return;
+    let promoRet = await loadSigninPromoDetail();
+    if (!promoRet) {
+        let loginRet = await tryReLogin();
+        if (!loginRet) {
+            return;
+        }
+        promoRet = await loadSigninPromoDetail();
     }
     }
-    if (result.statusCode != 200) {
+    if (!promoRet || promoRet.statusCode != 200) {
         return;
         return;
     }
     }
-    let detail = result.result;
+    let detail = promoRet.result;
     let loginDayCount = detail.loginDayCount;
     let loginDayCount = detail.loginDayCount;
     let currentDayCount = detail.currentDayCount;
     let currentDayCount = detail.currentDayCount;
     if (detail.depositCompleted) {
     if (detail.depositCompleted) {