1
This commit is contained in:
@@ -126,8 +126,8 @@ func TestGetOrder(t *testing.T) {
|
|||||||
GoodsWeight: 0.25,
|
GoodsWeight: 0.25,
|
||||||
GoodsCount: 1,
|
GoodsCount: 1,
|
||||||
GoodsItemList: aa,
|
GoodsItemList: aa,
|
||||||
ServiceGoodsId: 3000,
|
//ServiceGoodsId: nil,
|
||||||
BaseGoodsId: 30011,
|
//BaseGoodsId: nil,
|
||||||
//OutShopCode: "637910",
|
//OutShopCode: "637910",
|
||||||
ChainStoreID: "209476483",
|
ChainStoreID: "209476483",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -193,20 +193,20 @@ type PreCreateOrder struct {
|
|||||||
GoodsItemList []*GoodsItemsList // 货物列表
|
GoodsItemList []*GoodsItemsList // 货物列表
|
||||||
|
|
||||||
// 非必填参数
|
// 非必填参数
|
||||||
TransportLongitude float64 `json:"transport_longitude,omitempty"` // 取货经度
|
TransportLongitude float64 `json:"transport_longitude,omitempty"` // 取货经度
|
||||||
TransportLatitude float64 `json:"transport_latitude,omitempty"` // 取货纬度
|
TransportLatitude float64 `json:"transport_latitude,omitempty"` // 取货纬度
|
||||||
TransportTel string `json:"transport_tel,omitempty"` // 取货点联系人电话
|
TransportTel string `json:"transport_tel,omitempty"` // 取货点联系人电话
|
||||||
OutShopCode string `json:"out_shop_code,omitempty"` // 外部门店id 当使用门店发单 out_shop_code和chain_store_id必填1个
|
OutShopCode string `json:"out_shop_code,omitempty"` // 外部门店id 当使用门店发单 out_shop_code和chain_store_id必填1个
|
||||||
ChainStoreID string `json:"chain_store_id"` // 门店id
|
ChainStoreID string `json:"chain_store_id"` // 门店id
|
||||||
OrderSource string `json:"order_source,omitempty"` // 饿百订单传109 商户订单来源(如饿了么、美团等)手发单/未知来源: 0 或不传 美团: 2 口碑: 4 饿了么: 6支付宝: 7 饿百: 8
|
OrderSource string `json:"order_source,omitempty"` // 饿百订单传109 商户订单来源(如饿了么、美团等)手发单/未知来源: 0 或不传 美团: 2 口碑: 4 饿了么: 6支付宝: 7 饿百: 8
|
||||||
ServiceGoodsId int64 `json:"service_goods_id"` // 服务商品id
|
//ServiceGoodsId int64 `json:"service_goods_id"` // 服务商品id
|
||||||
BaseGoodsId int64 `json:"base_goods_id"` // 基础商品id
|
//BaseGoodsId int64 `json:"base_goods_id"` // 基础商品id
|
||||||
RequireReceiveTime string `json:"require_receive_time"` // 需要送达时间 预约单如(需要送达时间 – 推单时间) < 60min
|
RequireReceiveTime string `json:"require_receive_time"` // 需要送达时间 预约单如(需要送达时间 – 推单时间) < 60min
|
||||||
OrderAddTime int64 `json:"order_add_time,omitempty"` // 下单时间毫秒
|
OrderAddTime int64 `json:"order_add_time,omitempty"` // 下单时间毫秒
|
||||||
UseCoupon int `json:"use_coupon,omitempty"` // 是否使用优惠券 0:不使用, 1:使用 默认使用
|
UseCoupon int `json:"use_coupon,omitempty"` // 是否使用优惠券 0:不使用, 1:使用 默认使用
|
||||||
ExpectFetchTime int64 `json:"expect_fetch_time,omitempty"` // 预计出餐时间(毫秒) (预约单该字段必填)建议和商务合同里约定的承诺出货时长保持一致,否则影响考核结算
|
ExpectFetchTime int64 `json:"expect_fetch_time,omitempty"` // 预计出餐时间(毫秒) (预约单该字段必填)建议和商务合同里约定的承诺出货时长保持一致,否则影响考核结算
|
||||||
TransportAddress string `json:"transport_address"` // 取货点地址描述
|
TransportAddress string `json:"transport_address"` // 取货点地址描述
|
||||||
OrderTipAmountCent int64 `json:"order_tip_amount_cent,omitempty"` // 取货点地址描述
|
OrderTipAmountCent int64 `json:"order_tip_amount_cent,omitempty"` // 取货点地址描述
|
||||||
//OrderRemark string `json:"order_remark"`
|
//OrderRemark string `json:"order_remark"`
|
||||||
//FetchCode string `json:"fetch_code"`
|
//FetchCode string `json:"fetch_code"`
|
||||||
//WriteOffCode string `json:"write_off_code"`
|
//WriteOffCode string `json:"write_off_code"`
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ const (
|
|||||||
|
|
||||||
// 蜂鸟预下单
|
// 蜂鸟预下单
|
||||||
func (a *API) PreCreateByShopFn(basicParams *PreCreateOrder) (deliveryFee, baseDeliveryFee int64, err error) {
|
func (a *API) PreCreateByShopFn(basicParams *PreCreateOrder) (deliveryFee, baseDeliveryFee int64, err error) {
|
||||||
basicParams.BaseGoodsId = 30011
|
//basicParams.BaseGoodsId = 30011
|
||||||
basicParams.ServiceGoodsId = 3000
|
//basicParams.ServiceGoodsId = 3000
|
||||||
preOrder := a.MakeFnRequestHead()
|
preOrder := a.MakeFnRequestHead()
|
||||||
|
|
||||||
bytes, err := json.Marshal(basicParams)
|
bytes, err := json.Marshal(basicParams)
|
||||||
|
|||||||
Reference in New Issue
Block a user