上传用户登录时间推送

This commit is contained in:
liwei 2023-07-20 18:09:19 +08:00
parent f162e9685f
commit f05e0a84bb

View File

@ -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
}