feat(icon): 保护代码

This commit is contained in:
zhangxk
2023-09-01 18:09:52 +08:00
parent 45d37b9a33
commit 9f305f8ca4
3 changed files with 3 additions and 3 deletions

View File

@@ -235,7 +235,7 @@ export class LadderHandler {
await checkTaskInLadderEnd(serverId, roleId, sid, isSuccess, historyRank, atkLadderMatch.rank);
if (isSuccess && !rec.defenseInfo?.isRobot) await pushLadderIconShow(rec.roleId2, true);
if (isSuccess && (!rec.defenseInfo?.isRobot)) await pushLadderIconShow(rec.roleId2, true);
return resResult(STATUS.SUCCESS, {...pick(result, ['rank', 'historyRank', 'challengeCnt','status', 'time', 'oppPlayers']), battleGoods, breakGoods});
}

View File

@@ -378,7 +378,7 @@ export class GVGProduceHandler {
await saveScoreToRank(rec);
addVestigeBattleEndRec(rec);
if (isSuccess && !rec.defenseInfo?.isRobot) await pushGvgFightIconShow(rec.defenseRoleId, battleCode);
if (isSuccess && (!rec.defenseInfo?.isRobot)) await pushGvgFightIconShow(rec.defenseRoleId, battleCode);
return resResult(STATUS.SUCCESS, {
vestigeId: rec.vestigeId,