Files
baseapi/platformapi/jdshopapi/order_test.go
2020-09-24 18:26:29 +08:00

53 lines
987 B
Go

package jdshopapi
import (
"fmt"
"testing"
"git.rosy.net.cn/baseapi/utils"
)
func TestEnGet(t *testing.T) {
err := api.OrderShipment(1, "logiCoprId", "logiNo")
if err != nil {
t.Fatal(err)
}
// t.Log(utils.Format4Output(result, false))
}
func TestGetDeliveryCompany(t *testing.T) {
result, err := api.GetDeliveryCompany()
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestGetOrder(t *testing.T) {
fmt.Println(len("13153183146800000100"))
}
func TestVoucherInfoGet(t *testing.T) {
result, err := api.VoucherInfoGet()
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestKeyGet(t *testing.T) {
result, err := api.KeyGet()
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestGetOrderExtInfoByOrderId(t *testing.T) {
result, err := api.GetOrderExtInfoByOrderId("127152338712")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}