Преглед на файлове

测试数据不带赔率

flyzto преди 3 месеца
родител
ревизия
a2a962e30f
променени са 3 файла, в които са добавени 8 реда и са изтрити 5 реда
  1. 5 2
      server/models/GamesPs.js
  2. 2 2
      server/routes/pstery.js
  3. 1 1
      web/apps/web-antd/src/views/match/datatest/index.vue

+ 5 - 2
server/models/GamesPs.js

@@ -740,7 +740,7 @@ const updateSolutions = (solutions, eventsLogsMap) => {
 /**
  * 获取中单方案
  */
-const getSolutions = async ({ win_min }) => {
+const getSolutions = async ({ win_min, no_events }) => {
   // Logs.out('getSolutions', win_min);
   const { minShowAmount } = getSetting();
   const solutionsList = Object.values(GAMES.Solutions);
@@ -760,7 +760,10 @@ const getSolutions = async ({ win_min }) => {
     }
   });
   const relIds = solutions.map(item => item.info.id);
-  const gamesEvents = getGamesEvents({ relIds });
+  let gamesEvents = null;
+  if (!no_events) {
+    gamesEvents = getGamesEvents({ relIds });
+  }
   return { solutions, gamesEvents };
 }
 

+ 2 - 2
server/routes/pstery.js

@@ -69,8 +69,8 @@ router.get('/get_games_relation', (req, res) => {
 
 // 获取中单方案
 router.get('/get_solutions', (req, res) => {
-  const { win_min } = req.query;
-  Games.getSolutions({ win_min: win_min ? +win_min : undefined })
+  const { win_min, no_events } = req.query;
+  Games.getSolutions({ win_min: win_min ? +win_min : undefined, no_events: no_events === 'true' })
   .then(({ solutions, gamesEvents }) => {
     res.sendSuccess({ solutions, gamesEvents });
   })

+ 1 - 1
web/apps/web-antd/src/views/match/datatest/index.vue

@@ -37,7 +37,7 @@ const refreshData = () => {
   updateTime();
   Promise.all([
     requestClient.get('/pstery/get_games_relation', { params: { mk: selectedTestMode.value } }),
-    requestClient.get('/pstery/get_solutions', { params: { win_min: -99999 } })
+    requestClient.get('/pstery/get_solutions', { params: { win_min: -99999, no_events: true } })
   ])
   .then(([relations, solutions]) => {
     gamesRelation.value = relations;