From da1250a68a59e9227180ee04d2c9b2ac9295ac0b Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Mon, 10 Apr 2023 18:54:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BA=A4=E6=98=93=E5=A5=96=E5=8A=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/smithy/api_trade.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/smithy/api_trade.go b/modules/smithy/api_trade.go index 4710c7ae8..9b2160a5e 100644 --- a/modules/smithy/api_trade.go +++ b/modules/smithy/api_trade.go @@ -38,14 +38,14 @@ func (this *apiComp) Sell(session comm.IUserSession, req *pb.SmithySellReq) (cod return } - // conf := this.module.configure.GetSmithyCustomerConf(req.CustomerId) - // if conf == nil { - // code = pb.ErrorCode_ConfigNoFound - // return - // } + conf := this.module.configure.GetSmithyCustomerConf(req.CustomerId) + if conf == nil { + code = pb.ErrorCode_ConfigNoFound + return + } - // // 发奖励 - // this.module.DispenseRes(session, conf.Reword, true) + // 发奖励 + this.module.DispenseRes(session, conf.Reword, true) rsp := &pb.SmithySellResp{ CustomerId: req.CustomerId, From c75ae22354a19b61dbd7dfe5ba07a9d92c36e85d Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Mon, 10 Apr 2023 19:44:38 +0800 Subject: [PATCH 2/2] update config --- bin/json/game_smithycustomer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/json/game_smithycustomer.json b/bin/json/game_smithycustomer.json index 9c5af0b4d..3ba8a3e5b 100644 --- a/bin/json/game_smithycustomer.json +++ b/bin/json/game_smithycustomer.json @@ -11,7 +11,7 @@ { "a": "attr", "t": "gold", - "n": 10 + "n": 0 } ], "weight": 4500