From 61583f5fa3a342bc68376119fcd30f34cb7fa9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 18 Apr 2025 13:48:15 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tao_vegetable/order.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/business/partner/purchase/tao_vegetable/order.go b/business/partner/purchase/tao_vegetable/order.go index 46de76fff..e4734a46b 100644 --- a/business/partner/purchase/tao_vegetable/order.go +++ b/business/partner/purchase/tao_vegetable/order.go @@ -92,11 +92,12 @@ func (p *PurchaseHandler) getOrder(vendorOrgCode string, vendorOrderID int64, ve } order.Status = p.getStatusFromVendorStatus(*orderDetail.OrderStatus) - originalList := strings.Split(*orderDetail.ReceiveInfo.ReceiverPoi, ",") - order.ConsigneeLng = jxutils.StandardCoordinate2Int(utils.Str2Float64(originalList[0])) - order.ConsigneeLat = jxutils.StandardCoordinate2Int(utils.Str2Float64(originalList[1])) + if orderDetail.ReceiveInfo.ReceiverPoi != nil { + originalList := strings.Split(*orderDetail.ReceiveInfo.ReceiverPoi, ",") + order.ConsigneeLng = jxutils.StandardCoordinate2Int(utils.Str2Float64(originalList[0])) + order.ConsigneeLat = jxutils.StandardCoordinate2Int(utils.Str2Float64(originalList[1])) + } order.DiscountMoney = *orderDetail.DiscountFee - order.PmSubsidyMoney = *orderDetail.SkuDiscountPlatformFee // 平台承担优惠 // 添加需要赠送的东西(暂时没有赠品套餐直接商品) multiSkuMap := make(map[int]int) @@ -989,5 +990,5 @@ func (c *PurchaseHandler) GetPlatformLogisticsFee(order *model.GoodsOrder) (int6 // ApplyCompensationOrder 订单索赔 func (c *PurchaseHandler) ApplyCompensationOrder(order *model.GoodsOrder) (string, error) { - return "",nil + return "", nil }