闯关条件判断

This commit is contained in:
meixiongfeng 2022-09-20 16:56:45 +08:00
parent 3c8aa59f5b
commit 300eb4ecb0

View File

@ -36,7 +36,7 @@ func (this *apiComp) GetReward(session comm.IUserSession, req *pb.PagodaGetRewar
return
}
// 校验是否能领取
if _cfg.LayerNum >= season.PagodaId {
if _cfg.LayerNum > season.PagodaId {
code = pb.ErrorCode_PagodaConditionErr
return
}
@ -69,7 +69,7 @@ func (this *apiComp) GetReward(session comm.IUserSession, req *pb.PagodaGetRewar
return
}
// 校验是否能领取
if _cfg.LayerNum >= list.PagodaId {
if _cfg.LayerNum > list.PagodaId {
code = pb.ErrorCode_PagodaConditionErr
return
}