From 88ad0391de0467f56baa5fcad1a02429d410407d Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 7 Nov 2022 14:11:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=99=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/troll/api_buyorsell.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/troll/api_buyorsell.go b/modules/troll/api_buyorsell.go index e8f047726..f2c29f0e9 100644 --- a/modules/troll/api_buyorsell.go +++ b/modules/troll/api_buyorsell.go @@ -167,5 +167,8 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.TrollBuyOrSell this.module.ModifyTrollData(session.GetUserId(), update) this.module.SeTrollRankList(trolltrain.TotalEarn, session.GetUserId()) session.SendMsg(string(this.module.GetType()), TrollBuyOrSellResp, &pb.TrollBuyOrSellResp{Data: trolltrain}) + if gold != 0 { + this.module.record.AddTrollRecord(session.GetUserId(), gold) + } return }