From 095cff4de682a2f6aef3c43627198238f3203a69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 7 Mar 2022 14:49:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC=E9=85=8D=E9=80=81?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E6=9B=B4=E6=94=B9100004?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/mtpsapi/mtpsapi.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platformapi/mtpsapi/mtpsapi.go b/platformapi/mtpsapi/mtpsapi.go index 8b4a9910..d60bdb70 100644 --- a/platformapi/mtpsapi/mtpsapi.go +++ b/platformapi/mtpsapi/mtpsapi.go @@ -57,10 +57,10 @@ var ( ) const ( - DeliveryServiceCodeSuperRapid = 4002 // 飞速达 + DeliveryServiceCodeSuperRapid = 4002 // 飞速达 DeliveryServiceCodeRapid = 100004 // 快速达 - DeliveryServiceCodeIntime = 4012 // 及时达 - DeliveryServiceCodeTogether = 4013 // 集中送 + DeliveryServiceCodeIntime = 100006 // 及时达 + DeliveryServiceCodeTogether = 4013 // 集中送 ) const ( @@ -451,7 +451,7 @@ type PreCreateByShopParam struct { func (a *API) PreCreateByShop(basicParams *PreCreateByShopParam) (deliveryFee, baseDeliveryFee int64, err error) { params := utils.Struct2MapByJson(basicParams) result, err := a.AccessAPI("order/preCreateByShop", params) - if err == nil { + if err != nil { return 0, 0, err }