🐞 fix(icon): 修复防守方失败且排名不变不推送提示

This commit is contained in:
zhangxk
2023-09-04 20:08:07 +08:00
parent a3c4fc217e
commit 9949c1bb2f
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ export default class GVGVestigeRec extends BaseModel {
const recs: GVGVestigeRecType[] = await GVGVestigeRecModel.aggregate(pipeline);
if (recs.length > 0) {
for(const obj of recs){
if(obj.defenseRoleId == roleId && (!obj.defenseInfo.isSuccess)) result.push(obj);
if(obj.defenseRoleId == roleId && (!obj.defenseInfo.isSuccess) && obj.defenseInfo.newRank > obj.defenseInfo.oldRank ) result.push(obj);
}
}