1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package jdshopapi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
@@ -14,6 +15,18 @@ func TestEnGet(t *testing.T) {
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
//根据订单ID查询订单
|
||||
func TestGetOrderById(t *testing.T) {
|
||||
|
||||
//Str, err := json.Number("26138025293300000001").Int64()
|
||||
//id := utils.Str2Int64(Str)
|
||||
//261386944586
|
||||
//261380252933
|
||||
detail, err := api.GetOrderById(261380252933, false)
|
||||
fmt.Println(utils.Format4Output(detail, false))
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
func TestGetDeliveryCompany(t *testing.T) {
|
||||
result, err := api.GetDeliveryCompany()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user