flyzto 3 hónapja
szülő
commit
e789ca2e9f
1 módosított fájl, 8 hozzáadás és 9 törlés
  1. 8 9
      server/models/GamesPs.js

+ 8 - 9
server/models/GamesPs.js

@@ -77,7 +77,7 @@ const syncLeaguesList = ({ mk, leagues }) => {
   if (IS_DEV) {
     return Logs.out('syncLeaguesList', { mk, leagues });
   }
-  axios.post(`${BASE_API_URL}/p/syncLeague`, { mk, leagues })
+  axios.post(`${BASE_API_URL}/p/syncLeague`, { mk, leagues }, { proxy: false })
   .then(res => {
     // Logs.out('syncLeaguesList', res.data);
   })
@@ -114,7 +114,7 @@ const updateLeaguesList = ({ mk, leagues }) => {
  * 获取筛选过的联赛
  */
 const getFilteredLeagues = async (mk) => {
-  return axios.get(`${BASE_API_URL}/p/getLeagueTast?mk=${mk}`)
+  return axios.get(`${BASE_API_URL}/p/getLeagueTast?mk=${mk}`, { proxy: false })
   .then(res => {
     if (res.data.code == 0) {
       return res.data.data;
@@ -193,7 +193,7 @@ const submitOdds = ({ platform, mk, games }) => {
   if (IS_DEV) {
     return Logs.out('syncOdds', { platform, mk, games });
   }
-  axios.post(`${BASE_API_URL}/p/syncOdds`, { platform, mk, games})
+  axios.post(`${BASE_API_URL}/p/syncOdds`, { platform, mk, games}, { proxy: false })
   .then(res => {
     // Logs.out('syncOdds', { platform, mk, count: games.length }, res.data);
   })
@@ -444,7 +444,7 @@ const getDevGameTast = () => {
 const fetchGamesRelation = async (mk='') => {
   const getGameTast = Promise.all([
     getDevGameTast(),
-    axios.get(`${BASE_API_URL}/p/getGameTast?mk=${mk}`)
+    axios.get(`${BASE_API_URL}/p/getGameTast?mk=${mk}`, { proxy: false })
   ]);
   return getGameTast.then(([res1, res2]) => {
     const resData = res1.data ?? res2.data;
@@ -589,7 +589,7 @@ const updateGamesRelation = () => {
     });
 
     if (updateCount.add || updateCount.update || updateCount.delete) {
-      Logs.out('updateGamesRelation', JSON.stringify(updateCount));
+      Logs.out('updateGamesRelation', updateCount);
     }
     else {
       Logs.outDev('updateGamesRelation', updateCount);
@@ -631,7 +631,7 @@ const syncGamesResult = async (result) => {
   if (IS_DEV) {
     return Logs.out('updateGamesResult', result);
   }
-  axios.post(`${BASE_API_URL}/p/syncMatchResult`, result)
+  axios.post(`${BASE_API_URL}/p/syncMatchResult`, result, { proxy: false })
   .then(res => {
     // Logs.out('syncMatchResult', res.data);
   })
@@ -655,7 +655,7 @@ const syncSolutions = (solutions) => {
   if (IS_DEV) {
     return Logs.out('syncSolutions', solutions);
   }
-  axios.post(`${BASE_API_URL}/p/syncDsOpportunity`, solutions)
+  axios.post(`${BASE_API_URL}/p/syncDsOpportunity`, solutions, { proxy: false })
   .then(res => {
     // Logs.out('syncSolutions', res.data);
   })
@@ -895,7 +895,6 @@ const getTotalProfitWithBetInfo = async (betInfo1, betInfo2, fixed=false, inner_
   return getTotalProfit(sol1, sol2, inner_base, inner_rebate);
 }
 
-
 /**
  * 获取后台设置
  */
@@ -911,7 +910,7 @@ const notifyException = (message) => {
     return Logs.out('notifyException', { message });
   }
   const chat_id = -1003032820471;
-  axios.get(`${BASE_API_URL}/telegram/jump`, { params: { chat_id, message } })
+  axios.get(`${BASE_API_URL}/telegram/jump`, { params: { chat_id, message } }, { proxy: false })
   .then(() => {
     Logs.out('notifyException', '通知成功');
   })