上传竞技场代码

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) this.module.modelArena.integralCompute(red, bule, req.Iswin)
if req.Iswin { if req.Iswin {
if conf, err = this.module.configure.getGameArenaActiveWinData(info.Streak); err != nil { if conf, err = this.module.configure.getGameArenaActiveWinData(info.Streak); err == nil {
errdata = &pb.ErrorData{ red.Integral += conf.Txt.N
Code: pb.ErrorCode_ConfigNoFound, red.Changeintegral += conf.Txt.N
Message: err.Error(),
}
return
} }
red.Integral += conf.Txt.N
red.Changeintegral += conf.Txt.N
} }
if !req.Isai { if !req.Isai {
this.module.modelRank.updateArenaRank(red, bule) this.module.modelRank.updateArenaRank(red, bule)