Browse Source

fix 特殊盘完整列表

flyzto 1 month ago
parent
commit
c8e6b39104
1 changed files with 10 additions and 10 deletions
  1. 10 10
      pinnacle/main.js

+ 10 - 10
pinnacle/main.js

@@ -186,11 +186,11 @@ const getStraightOdds = async () => {
     return Promise.reject(new Error('no filted leagues'));
   }
   const leagueIds = GLOBAL_DATA.filtedLeagues.join(',');
-  let since = GLOBAL_DATA.straightOddsVersion;
-  if (GLOBAL_DATA.straightOddsCount >= 27) {
-    since = 0;
-    GLOBAL_DATA.straightOddsCount = 3;
-  }
+  const since = GLOBAL_DATA.straightOddsVersion;
+  // if (GLOBAL_DATA.straightOddsCount >= 27) {
+  //   since = 0;
+  //   GLOBAL_DATA.straightOddsCount = 3;
+  // }
   if (since == 0) {
     Logs.outDev('full update straight odds');
   }
@@ -236,11 +236,11 @@ const getSpecialFixtures = async () => {
     return Promise.reject(new Error('no filted leagues'));
   }
   const leagueIds = GLOBAL_DATA.filtedLeagues.join(',');
-  const since = GLOBAL_DATA.specialFixturesVersion;
-  // if (GLOBAL_DATA.specialFixturesCount >= 18) {
-  //   since = 0;
-  //   GLOBAL_DATA.specialFixturesCount = 6;
-  // }
+  let since = GLOBAL_DATA.specialFixturesVersion;
+  if (GLOBAL_DATA.specialFixturesCount >= 18) {
+    since = 0;
+    GLOBAL_DATA.specialFixturesCount = 6;
+  }
   if (since == 0) {
     Logs.outDev('full update special fixtures');
   }