From bbeab1c1907d9d362e5cbcabeba7cc36b7567b26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Sat, 9 May 2020 14:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A5=BF=E7=99=BE=E5=B0=8F=E8=B4=B9=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/ebai/order.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/business/partner/purchase/ebai/order.go b/business/partner/purchase/ebai/order.go index 6335804c3..9f9b4271a 100644 --- a/business/partner/purchase/ebai/order.go +++ b/business/partner/purchase/ebai/order.go @@ -3,6 +3,7 @@ package ebai import ( "fmt" "math" + "strings" "time" "git.rosy.net.cn/jx-callback/business/jxutils/tasksch" @@ -700,6 +701,11 @@ func (c *PurchaseHandler) GetWaybillTip(ctx *jxcontext.Context, vendorOrgCode, v func (c *PurchaseHandler) UpdateWaybillTip(ctx *jxcontext.Context, vendorOrgCode, vendorStoreID, vendorOrderID, vendorWaybillID, vendorWaybillID2, cityCode string, tipFee int64) (err error) { if globals.EnableEbaiStoreWrite { err = api.EbaiAPI.ModifyTip4OrderWaybill(vendorOrderID, "", jxutils.IntPrice2Standard(tipFee), 0) + if err != nil { + if strings.Contains(err.Error(), "HTTP code is not 200") { + return fmt.Errorf("饿百此订单暂不支持加小费!") + } + } } return err }