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,