init
This commit is contained in:
@ -13,7 +13,7 @@ type Logout struct {
|
||||
type LogoutHandle func(enterprise *service.SessionEnterprise) *Logout
|
||||
|
||||
func (c *Logout) Launch() error {
|
||||
if c.UID > 0 {
|
||||
if c.SessionEnterprise != nil && c.UID > 0 {
|
||||
service.Publish(config.EventForRedisHashDestroy, config.RedisKeyForAccount, utils.UintToString(c.UID))
|
||||
}
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user