Browse Source

improve task data save

master
filesite 8 months ago
parent
commit
9cea0fa3ce
  1. 9
      heroUnion.mjs

9
heroUnion.mjs

@ -271,14 +271,7 @@ class HeroUnion { @@ -271,14 +271,7 @@ class HeroUnion {
}
data.provider = bot_name; //记录数据提供者
let resIndex = this.tasks[taskIndex].results.findIndex((dataItem) => dataItem.provider == bot_name);
if (resIndex == -1) {
this.tasks[taskIndex].results.push(data);
}else {
this.tasks[taskIndex].results[resIndex] = data;
}
this.tasks[taskIndex].results = data;
this.tasks[taskIndex].updated = common.getTimestampInSeconds();
//更新统计数据

Loading…
Cancel
Save