1
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user