上传用户全局buff 清理

This commit is contained in:
liwei1dao 2023-03-02 14:16:32 +08:00
parent 2043367dd1
commit 3389e0f3b8
2 changed files with 3 additions and 1 deletions

View File

@ -120,6 +120,7 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (cod
}
// 清理点赞
this.module.ModuleFriend.ResetFriend(user.Uid)
}
rsp.Data = user

View File

@ -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,
}
// 更新连续等登录天数