|
@@ -441,11 +441,16 @@ const updateGamesRelation = () => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
gamesRelation.forEach(item => {
|
|
gamesRelation.forEach(item => {
|
|
|
- const { id } = item;
|
|
|
|
|
- if (!GAMES.Relations[id]) {
|
|
|
|
|
|
|
+ const { id, mk } = item;
|
|
|
|
|
+ const oldItem = GAMES.Relations[id];
|
|
|
|
|
+ if (!oldItem) {
|
|
|
GAMES.Relations[id] = item;
|
|
GAMES.Relations[id] = item;
|
|
|
updateCount.add ++;
|
|
updateCount.add ++;
|
|
|
}
|
|
}
|
|
|
|
|
+ else if (oldItem.mk != mk) {
|
|
|
|
|
+ GAMES.Relations[id] = item;
|
|
|
|
|
+ updateCount.update ++;
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const relations = new Set(gamesRelation.map(item => +item.id));
|
|
const relations = new Set(gamesRelation.map(item => +item.id));
|