#31719 缺陷 【梦工场系统】 <-QA-> 【石阵秘境】结算时奖励发放判断错误
This commit is contained in:
parent
7b1f234bb1
commit
7cc1b6af45
@ -35,20 +35,19 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.StonehengeFinishR
|
||||
return
|
||||
}
|
||||
|
||||
if conf := this.module.configure.GetStageConfByStageid(stone.StageID, stone.CurRoomIndes); conf != nil {
|
||||
stone.Integral += conf.WeeklyPoint // 发放积分 和奖励
|
||||
update["integral"] = stone.Integral
|
||||
curintegral = conf.WeeklyPoint
|
||||
// 再发天赋奖励
|
||||
if errdata, atno = this.module.DispenseAtno(session, []*cfg.Gameatn{conf.TalentItem}, true); errdata != nil {
|
||||
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
|
||||
curintegral = conf.WeeklyPoint
|
||||
// 再发天赋奖励
|
||||
if errdata, atno = this.module.DispenseAtno(session, []*cfg.Gameatn{conf.TalentItem}, true); errdata != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stone.StageID = 0
|
||||
|
Loading…
Reference in New Issue
Block a user