diff --git a/modules/user/module.go b/modules/user/module.go index e6d1a5598..beecb1436 100644 --- a/modules/user/module.go +++ b/modules/user/module.go @@ -366,8 +366,6 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha code = pb.ErrorCode_DBError } - this.ModuleUser.EventUserChanged(session) - return } @@ -406,6 +404,8 @@ func (this *User) AddAttributeValues(session comm.IUserSession, attrs map[string if bPush { //推送玩家账号信息变化消息 session.SendMsg(string(this.GetType()), "reschanged", _change) } + + this.ModuleUser.EventUserChanged(session) } return