From e82f50a1359865d1cf54a8c684baec349994aeda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 8 Mar 2022 11:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=9B=A2=E7=94=A8=E6=88=B7=E6=94=AF?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/delivery/mtps/waybill.go | 3 +-- business/partner/purchase/jx/phpjx/jxapi_order.go | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/business/partner/delivery/mtps/waybill.go b/business/partner/delivery/mtps/waybill.go index 732423380..6f4cfa946 100644 --- a/business/partner/delivery/mtps/waybill.go +++ b/business/partner/delivery/mtps/waybill.go @@ -86,7 +86,6 @@ func (c *DeliveryHandler) OnWaybillExcept(msg *mtpsapi.CallbackOrderExceptionMsg return retVal } -// 计算有问题 todo func (c *DeliveryHandler) onWaybillMsg(msg *mtpsapi.CallbackOrderMsg) (retVal *mtpsapi.CallbackResponse) { order := c.callbackMsg2Waybill(msg) switch msg.Status { @@ -219,7 +218,7 @@ func (c *DeliveryHandler) GetWaybillFee(order *model.GoodsOrder) (deliveryFeeInf ReceiverPhone: order.ConsigneeMobile, ReceiverLng: order.ConsigneeLng, ReceiverLat: order.ConsigneeLat, - GoodsValue: utils.Int64ToFloat64(order.ActualPayPrice), + GoodsValue: utils.Int64ToFloat64(order.ActualPayPrice) / 100, GoodsWeight: float64(int(shopWeight*100)) / 100, // 系统重量转换为千克 PayTypeCode: 0, ExpectedDeliveryTime: mtpsapi.DeliveryServiceCodeRapid, // 4002飞速达,4011快速达,4012及时达,4013集中送 diff --git a/business/partner/purchase/jx/phpjx/jxapi_order.go b/business/partner/purchase/jx/phpjx/jxapi_order.go index ef2befb2f..911d249c5 100644 --- a/business/partner/purchase/jx/phpjx/jxapi_order.go +++ b/business/partner/purchase/jx/phpjx/jxapi_order.go @@ -42,4 +42,3 @@ func (a *API) NotifyAfsOrderStatusChanged(afsOrder *model.AfsOrder) (err error) } return err } -