上传竞技场代码

This commit is contained in:
liwei1dao 2024-02-01 14:35:39 +08:00
parent 6666868fca
commit 7307ab888f

View File

@ -158,15 +158,10 @@ func (this *apiComp) ChallengeReward(session comm.IUserSession, req *pb.ArenaCha
}
this.module.modelArena.integralCompute(red, bule, req.Iswin)
if req.Iswin {
if conf, err = this.module.configure.getGameArenaActiveWinData(info.Streak); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ConfigNoFound,
Message: err.Error(),
}
return
if conf, err = this.module.configure.getGameArenaActiveWinData(info.Streak); err == nil {
red.Integral += conf.Txt.N
red.Changeintegral += conf.Txt.N
}
red.Integral += conf.Txt.N
red.Changeintegral += conf.Txt.N
}
if !req.Isai {
this.module.modelRank.updateArenaRank(red, bule)