From 32e2027622a5ac1831d4b8adb6021bc576ddcafd Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 16 Oct 2023 17:01:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BD=93=E5=8A=9B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user/module.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,