|
|
@@ -290,18 +290,18 @@ const setSolutions = (solutions) => {
|
|
|
solutionsHistory[sid].timestamp = timestamp;
|
|
|
|
|
|
});
|
|
|
- if (updateIds.add.length || updateIds.update.length) {
|
|
|
- const solutionsList = Object.values(solutionsHistory).sort((a, b) => b.sol.win_average - a.sol.win_average);
|
|
|
- Logs.outDev('solutions history update', JSON.stringify(solutionsList, null, 2), JSON.stringify(updateIds, null, 2));
|
|
|
- }
|
|
|
+ // if (updateIds.add.length || updateIds.update.length) {
|
|
|
+ // const solutionsList = Object.values(solutionsHistory).sort((a, b) => b.sol.win_average - a.sol.win_average);
|
|
|
+ // Logs.outDev('solutions history update', JSON.stringify(solutionsList, null, 2), JSON.stringify(updateIds, null, 2));
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取中单方案
|
|
|
*/
|
|
|
-const getSolutions = () => {
|
|
|
- const gamesRelations = getGamesRelation(true);
|
|
|
+const getSolutions = async () => {
|
|
|
+ const gamesRelations = await getGamesRelation();
|
|
|
const relationsMap = new Map(gamesRelations.map(item => [item.id, item.rel]));
|
|
|
const solutions = Object.values(GAMES.Solutions).sort((a, b) => b.sol.win_average - a.sol.win_average);
|
|
|
return solutions.map(item => {
|
|
|
@@ -311,7 +311,7 @@ const getSolutions = () => {
|
|
|
...item,
|
|
|
info: { id, ...relation }
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
/**
|