上传传功塔代码

This commit is contained in:
liwei1dao 2023-09-27 10:27:14 +08:00
parent 175ba83533
commit 1456fa9f8d
3 changed files with 2 additions and 7 deletions

View File

@ -597,7 +597,7 @@ func (this *ModelHero) AddCardExp(session comm.IUserSession, hero *pb.DBHero, ex
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype118, hero.Lv, hero.JuexingLv)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype118, hero.Lv, hero.JuexingLv))
go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) { go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {
this.module.passon.HeroUpLv(session.Clone(), hero.HeroID, curLv) this.module.passon.HeroUpLv(session, hero.HeroID, curLv)
this.module.ModuleBuried.TriggerBuried(session, tasks...) this.module.ModuleBuried.TriggerBuried(session, tasks...)
}) })
} }

View File

@ -81,7 +81,7 @@ func (this *apiComp) InRoom(session comm.IUserSession, req *pb.PassonInRoomReq)
errdata = &pb.ErrorData{ errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError, Code: pb.ErrorCode_ReqParameterError,
Title: pb.ErrorCode_ReqParameterError.ToString(), Title: pb.ErrorCode_ReqParameterError.ToString(),
Message: fmt.Sprintf("hero lv greater or equal to Passonlv:%d", passon.Passonlv), Message: fmt.Sprintf("hero lv greater Passonlv:%d", passon.Passonlv),
} }
return return
} }

View File

@ -125,11 +125,6 @@ func (this *Passon) HeroUpLv(session comm.IUserSession, heroid string, lv int32)
passon.Teacher[i] = heros[i].Id passon.Teacher[i] = heros[i].Id
} }
defer func() {
session.Push()
this.PutUserSession(session)
}()
if len(change) > 0 { if len(change) > 0 {
if errdata = this.ModuleHero.PassonHero(session, change); errdata != nil { if errdata = this.ModuleHero.PassonHero(session, change); errdata != nil {
this.Errorln(errdata) this.Errorln(errdata)