推送注册消息
This commit is contained in:
parent
72bb00422e
commit
ea02710279
@ -842,10 +842,11 @@ func (this *Hero) InRange(heroRecord *pb.DBHeroRecord, strPool []string, update
|
|||||||
|
|
||||||
func (this *Hero) RegisterInstructor(session comm.IUserSession, heroOid string, fulllvenr int32) (code pb.ErrorCode) {
|
func (this *Hero) RegisterInstructor(session comm.IUserSession, heroOid string, fulllvenr int32) (code pb.ErrorCode) {
|
||||||
var (
|
var (
|
||||||
_hero *pb.DBHero
|
_hero *pb.DBHero
|
||||||
model *db.DBModel
|
model *db.DBModel
|
||||||
err error
|
err error
|
||||||
_heroMap map[string]interface{}
|
_heroMap map[string]interface{}
|
||||||
|
_changeHero []*pb.DBHero // 变化的英雄
|
||||||
)
|
)
|
||||||
if this.IsCross() {
|
if this.IsCross() {
|
||||||
_hero = &pb.DBHero{}
|
_hero = &pb.DBHero{}
|
||||||
@ -892,6 +893,8 @@ func (this *Hero) RegisterInstructor(session comm.IUserSession, heroOid string,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_changeHero = append(_changeHero, _hero)
|
||||||
|
session.SendMsg(string(this.GetType()), "change", &pb.HeroChangePush{List: _changeHero})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user