- 美团外卖调试

This commit is contained in:
gazebo
2019-05-01 17:16:39 +08:00
parent 2ae94c589a
commit f31b2f9167

View File

@@ -15,7 +15,7 @@ func TestOrderViewStatus(t *testing.T) {
}
func TestOrderGetOrderDetail(t *testing.T) {
result, err := api.OrderGetOrderDetail(67413510345111009, false)
result, err := api.OrderGetOrderDetail(25236872740350976, false)
if err != nil {
t.Fatal(err)
}
@@ -25,6 +25,32 @@ func TestOrderGetOrderDetail(t *testing.T) {
t.Log(utils.Format4Output(result, false))
}
func TestOrderReceived(t *testing.T) {
err := api.OrderReceived(25236872740350976)
if err != nil {
t.Fatal(err)
}
}
func TestOrderConfirm(t *testing.T) {
err := api.OrderConfirm(25236872740350976)
if err != nil {
t.Fatal(err)
}
}
func TestOrderApplyPartRefund(t *testing.T) {
err := api.OrderApplyPartRefund(25236872740350976, "缺货", []*RefundSku{
&RefundSku{
AppFoodCode: "30831",
Count: 1,
},
})
if err != nil {
t.Fatal(err)
}
}
func TestOrderLogisticsStatus(t *testing.T) {
result, err := api.OrderLogisticsStatus(33762863658107006)
if err != nil {
@@ -47,13 +73,6 @@ func TestOrderBatchPullPhoneNumber(t *testing.T) {
// t.Log(utils.Format4Output(result, false))
}
func TestOrderConfirm(t *testing.T) {
err := api.OrderConfirm(24617230733961993)
if err != nil {
t.Fatal(err)
}
}
func TestGetOrderRefundDetail(t *testing.T) {
result, err := api.GetOrderRefundDetail(67413510345111009, 0)
if err != nil {