From 3389e0f3b8c9164744cf7041a626bfc25474da9a Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 2 Mar 2023 14:16:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=94=A8=E6=88=B7=E5=85=A8?= =?UTF-8?q?=E5=B1=80buff=20=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user/api_login.go | 1 + modules/user/model_expand.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/user/api_login.go b/modules/user/api_login.go index ed40355ce..73e055e0c 100644 --- a/modules/user/api_login.go +++ b/modules/user/api_login.go @@ -120,6 +120,7 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (cod } // 清理点赞 this.module.ModuleFriend.ResetFriend(user.Uid) + } rsp.Data = user diff --git a/modules/user/model_expand.go b/modules/user/model_expand.go index b4a31c128..a2af40519 100644 --- a/modules/user/model_expand.go +++ b/modules/user/model_expand.go @@ -72,13 +72,14 @@ func (this *ModelExpand) ChangeUserExpand(uid string, value map[string]interface } -// 累计登录天数 +// 累计登录天数 和 全局buff清理 func (this *ModelExpand) updateLoginDay(uid string, timestamp int64) (err error) { var de *pb.DBUserExpand if de, err = this.GetUserExpand(uid); err == nil { count := de.LoginAddCount + 1 update := map[string]interface{}{ "loginAddCount": count, + "globalbuff": 0, } // 更新连续等登录天数