shawenguan há 1 ano atrás
pai
commit
9a6518b5c2
1 ficheiros alterados com 9 adições e 0 exclusões
  1. 9 0
      Scripts/168/diiiLotteryTracking.js

+ 9 - 0
Scripts/168/diiiLotteryTracking.js

@@ -155,6 +155,13 @@ async function doLotteryTracking() {
     }
     let lotteryRet = await getLotteryPksInfo(gLotteryCode);
     let drawIssue = lotteryRet.drawIssue;
+    let tmpDrawIssue = magicJS.data.read('168_PksTrackingDrawIssue', '');
+    // 期号
+    let strDrawIssue = String(drawIssue);
+    if (tmpDrawIssue == strDrawIssue) {
+        return;
+    }
+
     let drawTime = lotteryRet.drawTime;
     let tipsMsg = ``;
     let rowTextArr = [
@@ -195,6 +202,8 @@ async function doLotteryTracking() {
     }
     tipsMsg += `期号:${drawIssue} 开奖时间:${drawTime}\n`;
     magicJS.notification.appendNotifyInfo(tipsMsg);
+
+    magicJS.data.write('168_PksTrackingDrawIssue', strDrawIssue);
 }