小费和骑手投诉
This commit is contained in:
@@ -198,6 +198,20 @@ func (d DeliveryHandler) GetWaybillFee(order *model.GoodsOrder) (deliveryFeeInfo
|
||||
return deliveryFeeInfo, err
|
||||
}
|
||||
|
||||
func (c *DeliveryHandler) GetWaybillTip(ctx *jxcontext.Context, vendorOrgCode, vendorStoreID, vendorOrderID, vendorWaybillID, vendorWaybillID2 string) (tipFee int64, err error) {
|
||||
// uu跑腿没有获取小费的接口,直接返回系统支付的金额
|
||||
//order, err := api.UuAPI.GetOrderDetail(vendorOrderID)
|
||||
//if err == nil {
|
||||
// tipFee = jxutils.StandardPrice2Int(order.Tips)
|
||||
//}
|
||||
//return tipFee, err
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func (c *DeliveryHandler) UpdateWaybillTip(ctx *jxcontext.Context, vendorOrgCode, vendorStoreID, vendorOrderID, vendorWaybillID, vendorWaybillID2, cityCode string, tipFee int64) (err error) {
|
||||
return api.UuAPI.AddTip(vendorOrderID, vendorWaybillID, int(tipFee))
|
||||
}
|
||||
|
||||
func (d DeliveryHandler) ComplaintRider(bill *model.Waybill, resonID int, resonContent string) (err error) {
|
||||
return fmt.Errorf("UU跑腿暂不支持此操作")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user