feat:完善信息

This commit is contained in:
henry
2021-10-13 11:23:55 +08:00
parent 17fb77e84a
commit 21dc62ba8e
11 changed files with 129 additions and 102 deletions

View File

@ -6,9 +6,12 @@ import (
"SciencesServer/utils"
)
type Logout struct{ *service.SessionEnterprise }
type Logout struct {
*service.SessionEnterprise
local uint64
}
type LogoutHandle func(*service.SessionEnterprise) *Logout
type LogoutHandle func(enterprise *service.SessionEnterprise, local uint64) *Logout
func (c *Logout) Launch() error {
service.Publish(config.EventForRedisHashDestroy, config.RedisKeyForAccount, utils.UintToString(c.UID))
@ -16,7 +19,7 @@ func (c *Logout) Launch() error {
}
func NewLogout() LogoutHandle {
return func(enterprise *service.SessionEnterprise) *Logout {
return &Logout{enterprise}
return func(enterprise *service.SessionEnterprise, local uint64) *Logout {
return &Logout{enterprise, local}
}
}