|
@@ -77,7 +77,7 @@ const syncLeaguesList = ({ mk, leagues }) => {
|
|
|
if (IS_DEV) {
|
|
if (IS_DEV) {
|
|
|
return Logs.out('syncLeaguesList', { mk, leagues });
|
|
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 => {
|
|
.then(res => {
|
|
|
// Logs.out('syncLeaguesList', res.data);
|
|
// Logs.out('syncLeaguesList', res.data);
|
|
|
})
|
|
})
|
|
@@ -114,7 +114,7 @@ const updateLeaguesList = ({ mk, leagues }) => {
|
|
|
* 获取筛选过的联赛
|
|
* 获取筛选过的联赛
|
|
|
*/
|
|
*/
|
|
|
const getFilteredLeagues = async (mk) => {
|
|
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 => {
|
|
.then(res => {
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
@@ -193,7 +193,7 @@ const submitOdds = ({ platform, mk, games }) => {
|
|
|
if (IS_DEV) {
|
|
if (IS_DEV) {
|
|
|
return Logs.out('syncOdds', { platform, mk, games });
|
|
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 => {
|
|
.then(res => {
|
|
|
// Logs.out('syncOdds', { platform, mk, count: games.length }, res.data);
|
|
// Logs.out('syncOdds', { platform, mk, count: games.length }, res.data);
|
|
|
})
|
|
})
|
|
@@ -444,7 +444,7 @@ const getDevGameTast = () => {
|
|
|
const fetchGamesRelation = async (mk='') => {
|
|
const fetchGamesRelation = async (mk='') => {
|
|
|
const getGameTast = Promise.all([
|
|
const getGameTast = Promise.all([
|
|
|
getDevGameTast(),
|
|
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]) => {
|
|
return getGameTast.then(([res1, res2]) => {
|
|
|
const resData = res1.data ?? res2.data;
|
|
const resData = res1.data ?? res2.data;
|
|
@@ -589,7 +589,7 @@ const updateGamesRelation = () => {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
if (updateCount.add || updateCount.update || updateCount.delete) {
|
|
if (updateCount.add || updateCount.update || updateCount.delete) {
|
|
|
- Logs.out('updateGamesRelation', JSON.stringify(updateCount));
|
|
|
|
|
|
|
+ Logs.out('updateGamesRelation', updateCount);
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
Logs.outDev('updateGamesRelation', updateCount);
|
|
Logs.outDev('updateGamesRelation', updateCount);
|
|
@@ -631,7 +631,7 @@ const syncGamesResult = async (result) => {
|
|
|
if (IS_DEV) {
|
|
if (IS_DEV) {
|
|
|
return Logs.out('updateGamesResult', result);
|
|
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 => {
|
|
.then(res => {
|
|
|
// Logs.out('syncMatchResult', res.data);
|
|
// Logs.out('syncMatchResult', res.data);
|
|
|
})
|
|
})
|
|
@@ -655,7 +655,7 @@ const syncSolutions = (solutions) => {
|
|
|
if (IS_DEV) {
|
|
if (IS_DEV) {
|
|
|
return Logs.out('syncSolutions', solutions);
|
|
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 => {
|
|
.then(res => {
|
|
|
// Logs.out('syncSolutions', res.data);
|
|
// 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);
|
|
return getTotalProfit(sol1, sol2, inner_base, inner_rebate);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取后台设置
|
|
* 获取后台设置
|
|
|
*/
|
|
*/
|
|
@@ -911,7 +910,7 @@ const notifyException = (message) => {
|
|
|
return Logs.out('notifyException', { message });
|
|
return Logs.out('notifyException', { message });
|
|
|
}
|
|
}
|
|
|
const chat_id = -1003032820471;
|
|
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(() => {
|
|
.then(() => {
|
|
|
Logs.out('notifyException', '通知成功');
|
|
Logs.out('notifyException', '通知成功');
|
|
|
})
|
|
})
|