diff --git a/platformapi/ebaiapi/shop_test.go b/platformapi/ebaiapi/shop_test.go index 3ffd154c..8e682bf2 100644 --- a/platformapi/ebaiapi/shop_test.go +++ b/platformapi/ebaiapi/shop_test.go @@ -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 { diff --git a/platformapi/jdapi/sku_test.go b/platformapi/jdapi/sku_test.go index 520f8306..83039a6f 100644 --- a/platformapi/jdapi/sku_test.go +++ b/platformapi/jdapi/sku_test.go @@ -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") diff --git a/platformapi/jdshopapi/order_test.go b/platformapi/jdshopapi/order_test.go index f06287fa..9e87cd55 100644 --- a/platformapi/jdshopapi/order_test.go +++ b/platformapi/jdshopapi/order_test.go @@ -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 { diff --git a/platformapi/uuptapi/uupt_test.go b/platformapi/uuptapi/uupt_test.go index affa9309..b149e870 100644 --- a/platformapi/uuptapi/uupt_test.go +++ b/platformapi/uuptapi/uupt_test.go @@ -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) }