|
@@ -854,8 +854,8 @@ const updateGamesResult = (result) => {
|
|
|
* 更新中单方案
|
|
* 更新中单方案
|
|
|
*/
|
|
*/
|
|
|
const getCprKey = (cpr) => {
|
|
const getCprKey = (cpr) => {
|
|
|
- const { k, p, v } = cpr;
|
|
|
|
|
- return `${k}_${p}_${v}`;
|
|
|
|
|
|
|
+ const { k, p, v, q } = cpr;
|
|
|
|
|
+ return `${k}_${p}_${v}_${q}`;
|
|
|
}
|
|
}
|
|
|
const compareCpr = (cpr1, cpr2) => {
|
|
const compareCpr = (cpr1, cpr2) => {
|
|
|
const key1 = getCprKey(cpr1);
|
|
const key1 = getCprKey(cpr1);
|
|
@@ -899,15 +899,15 @@ const updateSolutions = (solutions, eventsLogsMap) => {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- const solutionUpdate = {};
|
|
|
|
|
- Object.keys(updateIds).forEach(key => {
|
|
|
|
|
- if (key == 'retain' || key == 'remove') {
|
|
|
|
|
- solutionUpdate[key] = updateIds[key];
|
|
|
|
|
- }
|
|
|
|
|
- else {
|
|
|
|
|
- solutionUpdate[key] = updateIds[key].map(sid => solutionsHistory[sid]);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // const solutionUpdate = {};
|
|
|
|
|
+ // Object.keys(updateIds).forEach(key => {
|
|
|
|
|
+ // if (key == 'retain' || key == 'remove') {
|
|
|
|
|
+ // solutionUpdate[key] = updateIds[key];
|
|
|
|
|
+ // }
|
|
|
|
|
+ // else {
|
|
|
|
|
+ // solutionUpdate[key] = updateIds[key].map(sid => solutionsHistory[sid]);
|
|
|
|
|
+ // }
|
|
|
|
|
+ // });
|
|
|
|
|
|
|
|
// syncSolutions(solutionUpdate);
|
|
// syncSolutions(solutionUpdate);
|
|
|
|
|
|