From c586fb88feec24a9017f38b38f499a9c6a4c5cf8 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 1 Feb 2024 10:17:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E5=88=9B=E8=A7=92=E7=9A=84=E7=8E=A9?= =?UTF-8?q?=E5=AE=B6=20=E7=99=BB=E5=BD=95=E6=B2=A1=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 8 -------- modules/user/api_login.go | 5 ++++- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/comm/const.go b/comm/const.go index 303f3b50b..e617ac9c0 100644 --- a/comm/const.go +++ b/comm/const.go @@ -1028,14 +1028,6 @@ const ( MailLinePurgatory int32 = 3 // 炼狱 ) -const ( - RacePt int32 = 1 // 普通阵营 - RaceZr int32 = 2 // 灼热 - RaceYd int32 = 3 // 涌动 - RaceHx int32 = 4 // 呼啸 - RaceSy int32 = 5 // 闪耀 -) - const ( MailPeackReward = "PeackReward" ) diff --git a/modules/user/api_login.go b/modules/user/api_login.go index 043169a29..9984a0dd0 100644 --- a/modules/user/api_login.go +++ b/modules/user/api_login.go @@ -169,7 +169,10 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (err }) go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) { - event.TriggerEvent(comm.EventUserLogin, session) + if user.Name != "" { // 没创角就没必要通知 + event.TriggerEvent(comm.EventUserLogin, session) + } + if len(tasks) > 0 { this.module.ModuleBuried.TriggerBuried(session.Clone(), tasks...) }