shawenguan 1 an în urmă
părinte
comite
fdbc291932
1 a modificat fișierele cu 12 adăugiri și 0 ștergeri
  1. 12 0
      Scripts/jhsh/jhshHelper.js

+ 12 - 0
Scripts/jhsh/jhshHelper.js

@@ -625,6 +625,18 @@ async function checkSignIn(loginInfo, signActInfo){
                     break;
                     break;
                 }
                 }
             }
             }
+            let hasRewardGot = false;
+            if(couponInfo){
+                for(let i=0; i < REWORD_LIST.length; i++){
+                    if(REWORD_LIST[i].NODE_DAY == couponInfo.NODE_DAY){
+                        // 已领券奖励
+                        couponInfo = null;
+                        hasRewardGot = true;
+                        lk.log(`[${signActDetail.PAGE_TITLE}]活动第${signActDetail.SIGN_DAY}天已领取${REWORD_LIST[i].COUP_TITLE}-${REWORD_LIST[i].COUP_SUB_TITLE}`);
+                        break;
+                    }
+                }
+            }
             if(couponInfo){
             if(couponInfo){
                 const result = await getSignInReward(signActInfo, couponInfo, 'A3341C120');
                 const result = await getSignInReward(signActInfo, couponInfo, 'A3341C120');
                 return result;
                 return result;