|
@@ -824,6 +824,15 @@ const getSolution = async (sid) => {
|
|
|
return solution;
|
|
return solution;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * 通过比赛 ID 获取中单方案
|
|
|
|
|
+ */
|
|
|
|
|
+const getSolutionsByIds = async (ids) => {
|
|
|
|
|
+ const idsSet = new Set(ids.map(item => +item));
|
|
|
|
|
+ const solutions = Object.values(GAMES.Solutions).filter(item => idsSet.has(item.info.id));
|
|
|
|
|
+ return solutions;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 清理中单方案
|
|
* 清理中单方案
|
|
|
*/
|
|
*/
|
|
@@ -1037,7 +1046,7 @@ module.exports = {
|
|
|
updateGamesList, updateGamesEvents,
|
|
updateGamesList, updateGamesEvents,
|
|
|
getGamesRelation,
|
|
getGamesRelation,
|
|
|
updateGamesResult,
|
|
updateGamesResult,
|
|
|
- getSolutions, getSolution,
|
|
|
|
|
|
|
+ getSolutions, getSolution, getSolutionsByIds,
|
|
|
getTotalProfitWithSid,
|
|
getTotalProfitWithSid,
|
|
|
getTotalProfitWithBetInfo,
|
|
getTotalProfitWithBetInfo,
|
|
|
notifyException,
|
|
notifyException,
|