diff --git a/modules/user/module.go b/modules/user/module.go index 57802bef0..64e4a96e4 100644 --- a/modules/user/module.go +++ b/modules/user/module.go @@ -578,9 +578,10 @@ func (this *User) change(session comm.IUserSession, attrs map[string]int32) (atn } return } - change.Ps += add + user.Ps += add userEx.ConsumPs += -add this.recoverUserPs(user) + change.Ps = user.Ps go this.ModuleUiGame.HDPSTodayConsum(session.GetUserId(), userEx.ConsumPs) } else { if change.Ps+add > ggd.PsUl { @@ -1259,6 +1260,7 @@ func (this *User) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (red total, t := this.recoverUserPs(user) reddot[comm.Reddot30100] = &pb.ReddotItem{ Rid: int32(comm.Reddot30100), + Activated: true, Nextchanagetime: t, Progress: user.Ps, Total: total,