回调打桩
This commit is contained in:
@@ -37,37 +37,6 @@ func TestPreOrder(t *testing.T) {
|
||||
fmt.Println(baseDeliveryFee)
|
||||
}
|
||||
|
||||
// 正式下单
|
||||
func TestCreateOrder(t *testing.T) {
|
||||
api = New("6705486294797503379", "c1e6c280-e618-4103-9d0a-673bc54fb22e", "5375691", "51658")
|
||||
token, _ := api.GetAccessToken()
|
||||
api.accessToken = token.BusinessDataObj.AccessToken
|
||||
|
||||
aa := []*GoodsItemsList{
|
||||
{"白菜", 1, 100, 100, "30011", 1, "备注:大白菜"},
|
||||
//{"白菜2", 1, 100, 100, "30012", 1, "备注:大白菜2"},
|
||||
// {"白菜3", 1, 100, 100, "1004", 1, "备注:大白菜2"},
|
||||
}
|
||||
err := api.CreateOrder(&CreateOrderReqParam{
|
||||
PartnerOrderCode: "232232999uue21",
|
||||
OrderType: 1,
|
||||
PositionSource: 3,
|
||||
ReceiverAddress: "四川成都",
|
||||
ReceiverLongitude: 113.546508,
|
||||
ReceiverLatitude: 22.188382,
|
||||
GoodsTotalAmountCent: 100,
|
||||
GoodsActualAmountCent: 100,
|
||||
GoodsWeight: 0.25,
|
||||
GoodsCount: 1,
|
||||
GoodsItemList: aa,
|
||||
ReceiverName: "刘磊",
|
||||
ReceiverPrimaryPhone: "18981810340",
|
||||
OutShopCode: "",
|
||||
ChainStoreId: "200008235",
|
||||
})
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
// 添加小费
|
||||
func TestAddTip(t *testing.T) {
|
||||
api = New("6705486294797503379", "c1e6c280-e618-4103-9d0a-673bc54fb22e", "5375691", "51658")
|
||||
|
||||
Reference in New Issue
Block a user