|
|
@@ -253,7 +253,7 @@ const syncBaseEvents = ({ mk, games, outrights }) => {
|
|
|
Object.keys(special).forEach(ior => {
|
|
|
if (ior.startsWith('ior_ot')) {
|
|
|
const sourceOdds = special[ior].v;
|
|
|
- special[ior].v = fixFloat(sourceOdds + subsidyAmount, 3);
|
|
|
+ special[ior].v = fixFloat(sourceOdds * (1 + subsidyAmount));
|
|
|
special[ior].s = sourceOdds
|
|
|
}
|
|
|
});
|
|
|
@@ -314,12 +314,12 @@ const syncBaseEvents = ({ mk, games, outrights }) => {
|
|
|
return { ...gameInfo, matches, uptime };
|
|
|
});
|
|
|
|
|
|
- if (gamesList.filter(item => item.uptime > 0).length) {
|
|
|
- // if (mk == 2) {
|
|
|
- // Logs.out('syncBaseEvents', JSON.stringify({ mk, gamesList }, null, 2));
|
|
|
- // }
|
|
|
- submitOdds({ platform: 'ps', mk, games: gamesList });
|
|
|
- }
|
|
|
+ // if (gamesList.filter(item => item.uptime > 0).length) {
|
|
|
+ // // if (mk == 2) {
|
|
|
+ // // Logs.out('syncBaseEvents', JSON.stringify({ mk, gamesList }, null, 2));
|
|
|
+ // // }
|
|
|
+ // submitOdds({ platform: 'ps', mk, games: gamesList });
|
|
|
+ // }
|
|
|
|
|
|
const relatedGames = Object.values(GAMES.Relations).map(item => item.rel?.['ps'] ?? {});
|
|
|
|
|
|
@@ -648,13 +648,13 @@ const syncGamesResult = async (result) => {
|
|
|
if (IS_DEV) {
|
|
|
return Logs.out('updateGamesResult', result);
|
|
|
}
|
|
|
- axios.post(`${BASE_API_URL}/p/syncMatchResult`, result, { proxy: false })
|
|
|
- .then(res => {
|
|
|
- // Logs.out('syncMatchResult', res.data);
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- Logs.out('syncMatchResult', err.message);
|
|
|
- });
|
|
|
+ // axios.post(`${BASE_API_URL}/p/syncMatchResult`, result, { proxy: false })
|
|
|
+ // .then(res => {
|
|
|
+ // // Logs.out('syncMatchResult', res.data);
|
|
|
+ // })
|
|
|
+ // .catch(err => {
|
|
|
+ // Logs.out('syncMatchResult', err.message);
|
|
|
+ // });
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -668,18 +668,18 @@ const updateGamesResult = (result) => {
|
|
|
/**
|
|
|
* 同步中单方案
|
|
|
*/
|
|
|
-const syncSolutions = (solutions) => {
|
|
|
- if (IS_DEV) {
|
|
|
- return Logs.out('syncSolutions', solutions);
|
|
|
- }
|
|
|
- axios.post(`${BASE_API_URL}/p/syncDsOpportunity`, solutions, { proxy: false })
|
|
|
- .then(res => {
|
|
|
- // Logs.out('syncSolutions', res.data);
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- Logs.out('syncSolutions', err.message);
|
|
|
- });
|
|
|
-}
|
|
|
+// const syncSolutions = (solutions) => {
|
|
|
+// if (IS_DEV) {
|
|
|
+// return Logs.out('syncSolutions', solutions);
|
|
|
+// }
|
|
|
+// axios.post(`${BASE_API_URL}/p/syncDsOpportunity`, solutions, { proxy: false })
|
|
|
+// .then(res => {
|
|
|
+// // Logs.out('syncSolutions', res.data);
|
|
|
+// })
|
|
|
+// .catch(err => {
|
|
|
+// Logs.out('syncSolutions', err.message);
|
|
|
+// });
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 更新中单方案
|
|
|
@@ -740,7 +740,7 @@ const updateSolutions = (solutions, eventsLogsMap) => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- syncSolutions(solutionUpdate);
|
|
|
+ // syncSolutions(solutionUpdate);
|
|
|
|
|
|
if (updateIds.add.length / solutions.length > 0.25 ||
|
|
|
updateIds.remove.length / solutions.length > 0.25
|
|
|
@@ -944,9 +944,9 @@ const solutionsCleanup = () => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- if (updateIds.remove.length) {
|
|
|
- syncSolutions(updateIds);
|
|
|
- }
|
|
|
+ // if (updateIds.remove.length) {
|
|
|
+ // syncSolutions(updateIds);
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -1048,11 +1048,11 @@ const syncQbossConfig = () => {
|
|
|
});
|
|
|
if (needUpdate) {
|
|
|
Setting.update(settingFields);
|
|
|
- Logs.outDev('syncQbossConfig', settingFields);
|
|
|
- }
|
|
|
- else {
|
|
|
- Logs.outDev('syncQbossConfig no change');
|
|
|
+ // Logs.outDev('syncQbossConfig', settingFields);
|
|
|
}
|
|
|
+ // else {
|
|
|
+ // Logs.outDev('syncQbossConfig no change');
|
|
|
+ // }
|
|
|
})
|
|
|
.catch(err => {
|
|
|
Logs.out('syncQbossConfig error', err.message);
|