- mtwm.GetOrderRefundDetail

This commit is contained in:
gazebo
2019-05-01 13:36:21 +08:00
parent a1bf8690f7
commit 2ae94c589a
4 changed files with 84 additions and 2 deletions

View File

@@ -2,6 +2,8 @@ package mtwmapi
import (
"testing"
"git.rosy.net.cn/baseapi/utils"
)
func TestOrderViewStatus(t *testing.T) {
@@ -13,14 +15,14 @@ func TestOrderViewStatus(t *testing.T) {
}
func TestOrderGetOrderDetail(t *testing.T) {
result, err := api.OrderGetOrderDetail(33762863658107006, false)
result, err := api.OrderGetOrderDetail(67413510345111009, false)
if err != nil {
t.Fatal(err)
}
if len(result) == 0 {
t.Fatal("result should have value")
}
// t.Log(utils.Format4Output(result, false))
t.Log(utils.Format4Output(result, false))
}
func TestOrderLogisticsStatus(t *testing.T) {
@@ -51,3 +53,11 @@ func TestOrderConfirm(t *testing.T) {
t.Fatal(err)
}
}
func TestGetOrderRefundDetail(t *testing.T) {
result, err := api.GetOrderRefundDetail(67413510345111009, 0)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}