上传带啊吗修复
This commit is contained in:
parent
4f9419ceb5
commit
f68ec270b9
@ -196,7 +196,7 @@ func (this *apiComp) Expulsion(session comm.IUserSession, req *pb.PracticeExpuls
|
||||
}
|
||||
}
|
||||
_session, ok = this.module.GetUserSession(pillar.Uid)
|
||||
if _, errdata = this.module.ModuleHero.AddHeroExp(_session, []string{pillar.Hero}, exp); errdata != nil {
|
||||
if _, errdata = this.module.ModuleHero.AddHerosExp(_session, []string{pillar.Hero}, exp); errdata != nil {
|
||||
return
|
||||
}
|
||||
if errdata = this.module.ModuleHero.KungFuHero(_session, pillar.Hero, false, ""); errdata != nil {
|
||||
|
@ -258,7 +258,7 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.PracticeReceiveR
|
||||
}
|
||||
}
|
||||
this.module.Debug("最终经验加成", log.Field{Key: "exp", Value: exp}, log.Field{Key: "exp1", Value: exp1})
|
||||
if _, errdata = this.module.ModuleHero.AddHeroExp(session, []string{pillar.Hero}, exp1); errdata != nil {
|
||||
if _, errdata = this.module.ModuleHero.AddHerosExp(session, []string{pillar.Hero}, exp1); errdata != nil {
|
||||
return
|
||||
}
|
||||
if errdata = this.module.DispenseRes(session, append(ants1, ants2...), true); errdata != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user