上传用户全局buff 清理
This commit is contained in:
parent
2043367dd1
commit
3389e0f3b8
@ -120,6 +120,7 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (cod
|
||||
}
|
||||
// 清理点赞
|
||||
this.module.ModuleFriend.ResetFriend(user.Uid)
|
||||
|
||||
}
|
||||
|
||||
rsp.Data = user
|
||||
|
@ -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,
|
||||
}
|
||||
|
||||
// 更新连续等登录天数
|
||||
|
Loading…
Reference in New Issue
Block a user