#31719 缺陷 【梦工场系统】 <-QA-> 【石阵秘境】结算时奖励发放判断错误

This commit is contained in:
meixiongfeng 2023-08-18 10:48:39 +08:00
parent 7b1f234bb1
commit 7cc1b6af45

View File

@ -35,6 +35,10 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.StonehengeFinishR
return
}
// 校验是否是通关
if conf := this.module.configure.GetStageConfByStageid(stone.StageID, stone.CurRoomIndes+1); conf == nil {
stone.Reward[stone.StageID] = true
update["reward"] = stone.Reward
if conf := this.module.configure.GetStageConfByStageid(stone.StageID, stone.CurRoomIndes); conf != nil {
stone.Integral += conf.WeeklyPoint // 发放积分 和奖励
update["integral"] = stone.Integral
@ -44,11 +48,6 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.StonehengeFinishR
return
}
}
// 校验是否是通关
if conf := this.module.configure.GetStageConfByStageid(stone.StageID, stone.CurRoomIndes+1); conf == nil {
stone.Reward[stone.StageID] = true
update["reward"] = stone.Reward
}
stone.StageID = 0