修改美团配送费,获取美团返回配送价格存入数据库
This commit is contained in:
@@ -294,7 +294,7 @@ func (a *API) result2OrderResponse(result *ResponseResult) (order *OrderResponse
|
||||
order.MtPeisongID = result.Data["mt_peisong_id"].(string)
|
||||
order.DeliveryID = utils.MustInterface2Int64(result.Data["delivery_id"])
|
||||
order.OrderID = result.Data["order_id"].(string)
|
||||
order.DeliveryFee = utils.MustInterface2Float64(result.Data["delivery_fee"])
|
||||
order.DeliveryFee = result.Data["delivery_fee"].(float64)
|
||||
return order
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ func (a *API) CreateOrderByShop(basicParams *CreateOrderByShopParam, addParams m
|
||||
}
|
||||
}
|
||||
|
||||
// 获取美团订单费用
|
||||
// 创建订单
|
||||
func (a *API) CreateOrderByShop2(basicParams *CreateOrderByShopParam) (order *OrderResponse, err error) {
|
||||
params := utils.Struct2MapByJson(basicParams)
|
||||
if basicParams.OrderType != OrderTypeBook {
|
||||
|
||||
Reference in New Issue
Block a user