From accf28a7956a55003997b8d2438747f5f4113987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 24 May 2022 09:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95b2b?= =?UTF-8?q?=E8=BF=90=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/jx/localjx/order.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index 55b99df2f..a8c1ab3e7 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -1006,13 +1006,9 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64 } // B2B门店,订单不足一千配送费一百 - globals.SugarLogger.Debug("=====1", jxOrder.StoreID, jxOrder.StoreName, storeDetail.BrandName, outJxOrder.FreightPrice) - globals.SugarLogger.Debug("=====3", strings.Contains(storeDetail.BrandName, model.B2BTag), jxOrder.OrderPrice, jxOrder.OrderPrice < 10000) - globals.SugarLogger.Debug("=====4", strings.Contains(storeDetail.BrandName, model.B2BTag) && jxOrder.OrderPrice < 10000 ) - if strings.Contains(storeDetail.BrandName, model.B2BTag) && jxOrder.OrderPrice < 1000000 { - outJxOrder.FreightPrice = 10000 // b2b运费一百元 + if strings.Contains(storeDetail.BrandName, model.B2BTag) && jxOrder.OrderPrice < 100000 { + outJxOrder.FreightPrice = 10000 // b2b运费一百元 } - globals.SugarLogger.Debug("====2", outJxOrder.FreightPrice) // 订单超过一千配送费优惠(门店运费) discountPrice, err := cms.GetStoreVendorMaps(ctx, nil, jxOrder.StoreID, -1) if len(discountPrice) == 1 && outJxOrder.OrderPrice >= int64(discountPrice[0].DeliveryFeeDeductionSill) {