From d08eaf01af57a51809e321bc6565e7e328d979fd Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 28 Apr 2023 18:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E5=B8=81=E6=B6=88=E8=80=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user/module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/user/module.go b/modules/user/module.go index 197d11e82..1081e9b6e 100644 --- a/modules/user/module.go +++ b/modules/user/module.go @@ -418,7 +418,7 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha code = pb.ErrorCode_GoldNoEnough return } - go this.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype68, add)) + go this.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype68, -(add))) } change.Gold += int64(add) case comm.ResExp: