美团用户支出
This commit is contained in:
@@ -86,7 +86,6 @@ func (c *DeliveryHandler) OnWaybillExcept(msg *mtpsapi.CallbackOrderExceptionMsg
|
|||||||
return retVal
|
return retVal
|
||||||
}
|
}
|
||||||
|
|
||||||
// 计算有问题 todo
|
|
||||||
func (c *DeliveryHandler) onWaybillMsg(msg *mtpsapi.CallbackOrderMsg) (retVal *mtpsapi.CallbackResponse) {
|
func (c *DeliveryHandler) onWaybillMsg(msg *mtpsapi.CallbackOrderMsg) (retVal *mtpsapi.CallbackResponse) {
|
||||||
order := c.callbackMsg2Waybill(msg)
|
order := c.callbackMsg2Waybill(msg)
|
||||||
switch msg.Status {
|
switch msg.Status {
|
||||||
@@ -219,7 +218,7 @@ func (c *DeliveryHandler) GetWaybillFee(order *model.GoodsOrder) (deliveryFeeInf
|
|||||||
ReceiverPhone: order.ConsigneeMobile,
|
ReceiverPhone: order.ConsigneeMobile,
|
||||||
ReceiverLng: order.ConsigneeLng,
|
ReceiverLng: order.ConsigneeLng,
|
||||||
ReceiverLat: order.ConsigneeLat,
|
ReceiverLat: order.ConsigneeLat,
|
||||||
GoodsValue: utils.Int64ToFloat64(order.ActualPayPrice),
|
GoodsValue: utils.Int64ToFloat64(order.ActualPayPrice) / 100,
|
||||||
GoodsWeight: float64(int(shopWeight*100)) / 100, // 系统重量转换为千克
|
GoodsWeight: float64(int(shopWeight*100)) / 100, // 系统重量转换为千克
|
||||||
PayTypeCode: 0,
|
PayTypeCode: 0,
|
||||||
ExpectedDeliveryTime: mtpsapi.DeliveryServiceCodeRapid, // 4002飞速达,4011快速达,4012及时达,4013集中送
|
ExpectedDeliveryTime: mtpsapi.DeliveryServiceCodeRapid, // 4002飞速达,4011快速达,4012及时达,4013集中送
|
||||||
|
|||||||
@@ -42,4 +42,3 @@ func (a *API) NotifyAfsOrderStatusChanged(afsOrder *model.AfsOrder) (err error)
|
|||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user