同步武馆踢人状态
This commit is contained in:
parent
c948f032c2
commit
4cfcf51643
@ -184,12 +184,6 @@ func (this *apiComp) Expulsion(session comm.IUserSession, req *pb.PracticeExpuls
|
|||||||
if code = this.module.ModuleHero.KungFuHero(_session, pillar.Hero, false, ""); code != pb.ErrorCode_Success {
|
if code = this.module.ModuleHero.KungFuHero(_session, pillar.Hero, false, ""); code != pb.ErrorCode_Success {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if ok { //在线直接推送消息
|
|
||||||
if err = _session.Push(); err != nil {
|
|
||||||
this.module.Errorln(err)
|
|
||||||
}
|
|
||||||
this.module.PutUserSession(_session)
|
|
||||||
}
|
|
||||||
|
|
||||||
res := make([]*pb.UserAssets, 0)
|
res := make([]*pb.UserAssets, 0)
|
||||||
for _, v := range ants1 {
|
for _, v := range ants1 {
|
||||||
@ -227,6 +221,14 @@ func (this *apiComp) Expulsion(session comm.IUserSession, req *pb.PracticeExpuls
|
|||||||
this.module.modelPandata.Change(pillar.Uid, map[string]interface{}{
|
this.module.modelPandata.Change(pillar.Uid, map[string]interface{}{
|
||||||
"knapsack": froom.Knapsack,
|
"knapsack": froom.Knapsack,
|
||||||
})
|
})
|
||||||
|
if ok { //在线直接推送消息
|
||||||
|
_session.SendMsg(string(this.module.GetType()), "beexpulsion", &pb.PracticeBeExpulsionPush{Pillar: pillar, Knapsack: froom.Knapsack})
|
||||||
|
|
||||||
|
if err = _session.Push(); err != nil {
|
||||||
|
this.module.Errorln(err)
|
||||||
|
}
|
||||||
|
this.module.PutUserSession(_session)
|
||||||
|
}
|
||||||
session.SendMsg(string(this.module.GetType()), "expulsion", &pb.PracticeExpulsionResp{Pillar: pillar, Knapsack: froom.Knapsack})
|
session.SendMsg(string(this.module.GetType()), "expulsion", &pb.PracticeExpulsionResp{Pillar: pillar, Knapsack: froom.Knapsack})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user