feat:完善信息
This commit is contained in:
@ -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}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user