|
|
@@ -289,9 +289,8 @@ const syncBaseEvents = ({ mk, games, outrights }) => {
|
|
|
outrights?.forEach(outright => {
|
|
|
const { parentId, sptime, special } = outright;
|
|
|
const baseGame = baseMap.get(parentId);
|
|
|
- if (baseGame) {
|
|
|
- const { timestamp, mk } = baseGame;
|
|
|
- const isRb = (mk == 2);
|
|
|
+ if (baseGame) { // 赛前特殊盘口
|
|
|
+ const { timestamp } = baseGame;
|
|
|
const isSubsidy = timestamp > nowTime && timestamp < nowTime + 1000*60*60*subsidyTime;
|
|
|
if (isSubsidy) {
|
|
|
Object.keys(special).forEach(ior => {
|
|
|
@@ -302,7 +301,13 @@ const syncBaseEvents = ({ mk, games, outrights }) => {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- else if (isRb) {
|
|
|
+ baseGame.sptime = sptime;
|
|
|
+ baseGame.special = special;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ const originBaseMap = new Map(baseList[marketType].map(item => [item.originId, item]));
|
|
|
+ const originBaseGame = originBaseMap.get(parentId);
|
|
|
+ if (originBaseGame) { // 滚球特殊盘口
|
|
|
Object.keys(special).forEach(ior => {
|
|
|
if (ior.startsWith('ior_wm') && subsidyRbWmAmount) {
|
|
|
const sourceOdds = special[ior].v;
|
|
|
@@ -315,14 +320,6 @@ const syncBaseEvents = ({ mk, games, outrights }) => {
|
|
|
special[ior].s = sourceOdds
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
- baseGame.sptime = sptime;
|
|
|
- baseGame.special = special;
|
|
|
- }
|
|
|
- else {
|
|
|
- const originBaseMap = new Map(baseList[marketType].map(item => [item.originId, item]));
|
|
|
- const originBaseGame = originBaseMap.get(parentId);
|
|
|
- if (originBaseGame) {
|
|
|
originBaseGame.sptime = sptime;
|
|
|
originBaseGame.special = special;
|
|
|
}
|