更改资源变化推送顺序

This commit is contained in:
wh_zcy 2022-12-02 15:19:13 +08:00
parent a2b0a2505a
commit 86debd451d

View File

@ -356,8 +356,6 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha
code = pb.ErrorCode_DBError
}
this.ModuleUser.EventUserChanged(session)
return
}
@ -396,6 +394,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