美团用户支出

This commit is contained in:
邹宗楠
2022-03-08 11:07:30 +08:00
parent 898ff662ad
commit e82f50a135
2 changed files with 1 additions and 3 deletions

View File

@@ -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集中送

View File

@@ -42,4 +42,3 @@ func (a *API) NotifyAfsOrderStatusChanged(afsOrder *model.AfsOrder) (err error)
}
return err
}