上传代码

This commit is contained in:
liwei 2023-07-27 20:00:35 +08:00
parent 749b210ded
commit 57d52b1fd3
2 changed files with 5 additions and 2 deletions

View File

@ -128,9 +128,12 @@ func (this *apiComp) ChallengeFinish(session comm.IUserSession, req *pb.GuildGve
}
v.Record = append(v.Record, record)
go this.module.modelGuildGve.booshpchangepush(req.Guildid, info)
if v.Hp < 0 {
if v.Hp <= 0 {
v.Hp = 0
info.Kills++
if info.Fire == v.Boosid {
info.Fire = 0
}
info.Lastkilltime = configure.Now().Unix()
this.module.modelRank.updateRank(info)
go this.module.modelGuildGve.booskill(req.Guildid, req.Boosid, info)

View File

@ -249,7 +249,7 @@ func (this *ModelUniongve) booskill(unionid string, boosid int32, info *pb.DBGui
return
}
v.Boosid = conf.BossId
v.Hp = v.Hp
v.Hp = conf.Hp
v.Record = make([]*pb.DBGveRecord, 0)
}
if err = this.updateGuildGve(info); err != nil {