|
|
@@ -200,18 +200,18 @@ const updateGamesList = (({ platform, mk, games } = {}) => {
|
|
|
/**
|
|
|
* 提交盘口数据
|
|
|
*/
|
|
|
-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}, { proxy: false })
|
|
|
- .then(res => {
|
|
|
- // Logs.out('syncOdds', { platform, mk, count: games.length }, res.data);
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- Logs.out('syncOdds', { platform, mk }, err.message);
|
|
|
- });
|
|
|
-}
|
|
|
+// 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}, { proxy: false })
|
|
|
+// .then(res => {
|
|
|
+// // Logs.out('syncOdds', { platform, mk, count: games.length }, res.data);
|
|
|
+// })
|
|
|
+// .catch(err => {
|
|
|
+// Logs.out('syncOdds', { platform, mk }, err.message);
|
|
|
+// });
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 同步基准盘口
|
|
|
@@ -250,13 +250,14 @@ const syncBaseEvents = ({ mk, games, outrights }) => {
|
|
|
const { timestamp } = baseGame;
|
|
|
const isSubsidy = timestamp > nowTime && timestamp < nowTime + 1000*60*60*subsidyTime;
|
|
|
if (isSubsidy) {
|
|
|
- Object.keys(special).forEach(ior => {
|
|
|
- if (ior.startsWith('ior_ot')) {
|
|
|
- const sourceOdds = special[ior].v;
|
|
|
+ Object.keys(special).forEach(ior => {
|
|
|
+ if (ior.startsWith('ior_ot')) {
|
|
|
+ const sourceOdds = special[ior].v;
|
|
|
special[ior].v = fixFloat(sourceOdds * (1 + subsidyAmount));
|
|
|
special[ior].s = sourceOdds
|
|
|
}
|
|
|
});
|
|
|
+ console.log('special', special);
|
|
|
}
|
|
|
baseGame.sptime = sptime;
|
|
|
baseGame.special = special;
|