上传用户登录时间推送
This commit is contained in:
parent
f162e9685f
commit
f05e0a84bb
@ -2,6 +2,7 @@ package user
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/sys/event"
|
||||
"go_dreamfactory/lego/sys/log"
|
||||
"go_dreamfactory/pb"
|
||||
"go_dreamfactory/sys/configure"
|
||||
@ -173,5 +174,6 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (err
|
||||
rsp.Data = user
|
||||
rsp.TimeNow = configure.Now().Unix() // 设置服务器时间
|
||||
session.SendMsg(string(this.module.GetType()), UserSubTypeLogin, rsp)
|
||||
event.TriggerEvent(comm.EventUserLogin, session.Clone())
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user