更新条件
This commit is contained in:
parent
e7653fbe34
commit
a8f3add1a7
@ -69,6 +69,7 @@ func (this *apiComp) BattleFinish(session comm.IUserSession, req *pb.RtaskBattle
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 校验完成条件
|
// 校验完成条件
|
||||||
|
var checkCondi bool
|
||||||
for _, v := range sideConf.EndTid {
|
for _, v := range sideConf.EndTid {
|
||||||
if v == -1 {
|
if v == -1 {
|
||||||
continue
|
continue
|
||||||
@ -77,9 +78,15 @@ func (this *apiComp) BattleFinish(session comm.IUserSession, req *pb.RtaskBattle
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
this.moduleRtask.Error(err.Error())
|
this.moduleRtask.Error(err.Error())
|
||||||
}
|
}
|
||||||
code = pb.ErrorCode_RtaskCondiNoReach
|
this.moduleRtask.Debugf("条件未达成 condiID:%v rtaskId:%v subRtaskId:%v chooseID:%v", v, req.RtaskId, req.RtaskSubId, req.ChooseId)
|
||||||
return
|
break
|
||||||
}
|
}
|
||||||
|
checkCondi = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if !checkCondi {
|
||||||
|
code = pb.ErrorCode_RtaskCondiNoReach
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新完成的任务
|
// 更新完成的任务
|
||||||
|
Loading…
Reference in New Issue
Block a user