回调打桩

This commit is contained in:
邹宗楠
2022-03-30 17:34:36 +08:00
parent 78a23f293b
commit 798c5fcaf8
4 changed files with 54 additions and 53 deletions

View File

@@ -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")