From 4c2d96512e6be912a108aabd4a4501139a94066e Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Thu, 29 Jun 2023 18:03:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=81=E5=8C=A0=E9=93=BA=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E5=B1=8F=E8=94=BD=E9=94=99=E8=AF=AF=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/smithy/api_trade.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/smithy/api_trade.go b/modules/smithy/api_trade.go index 398f1c4e7..fcf0474ab 100644 --- a/modules/smithy/api_trade.go +++ b/modules/smithy/api_trade.go @@ -31,20 +31,15 @@ func (this *apiComp) Sell(session comm.IUserSession, req *pb.SmithySellReq) (err if err != nil { var customErr = new(comm.CustomError) if errors.As(err, &customErr) { - errdata = &pb.ErrorData{ - Code: customErr.Code, - Title: customErr.Code.ToString(), - Message: err.Error(), - } + this.module.Debug(customErr.Code.String()) } else { errdata = &pb.ErrorData{ Code: pb.ErrorCode_DBError, Title: pb.ErrorCode_DBError.ToString(), Message: err.Error(), } + return } - - return } conf, err := this.module.configure.GetSmithyCustomerConf(req.CustomerId)