1
This commit is contained in:
@@ -54,7 +54,7 @@ func TestShopCreate(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestShopGet(t *testing.T) {
|
||||
result, err := api.ShopGet2("", 2235877567) //2233065879 ,22267134648
|
||||
result, err := api.ShopGet2("", 1138456086) //2233065879 ,22267134648
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
} else {
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package jdapi
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"testing"
|
||||
)
|
||||
|
||||
//
|
||||
//import (
|
||||
@@ -272,14 +275,14 @@ func TestChangeShopCategoryOrder(t *testing.T) {
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
//}
|
||||
//
|
||||
//func TestGetSpuSaleAttr(t *testing.T) {
|
||||
// result, err := api.GetSpuSaleAttr("3628")
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
//}
|
||||
//
|
||||
func TestGetSpuSaleAttr(t *testing.T) {
|
||||
result, err := api.GetSpuSaleAttr("30331")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
//func TestAddSku(t *testing.T) {
|
||||
// str := `
|
||||
// {"brandId":35247,
|
||||
@@ -331,13 +334,14 @@ func TestChangeShopCategoryOrder(t *testing.T) {
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
//}
|
||||
//
|
||||
//func TestGetSkuStatus(t *testing.T) {
|
||||
// result, err := api.GetSkuStatus("6092943")
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
//}
|
||||
func TestGetSkuStatus(t *testing.T) {
|
||||
result, err := api.GetSkuStatus("6043681")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
//
|
||||
//func TestUpdateSpuSaleAttr(t *testing.T) {
|
||||
// err := api.UpdateSpuSaleAttr("3628", "1001", "", "10", "hello")
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -83,7 +83,7 @@ func TestAddOrder(t *testing.T) {
|
||||
|
||||
//获取订单详情
|
||||
func TestGetOrderDetail(t *testing.T) {
|
||||
detail, err := api.GetOrderDetail("230128143210047000011744")
|
||||
detail, err := api.GetOrderDetail("23022111551032700006604805")
|
||||
fmt.Println(utils.Format4Output(detail, false))
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user