🐞 fix(icon): 修复防守方失败且排名不变不推送提示
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user