- ebai key changed.
This commit is contained in:
@@ -32,14 +32,14 @@ func TestShopCategoryUpdate(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestShopCategoryDelete(t *testing.T) {
|
||||
err := api.ShopCategoryDelete(testShopID, 153760292217132)
|
||||
err := api.ShopCategoryDelete(testShopID, 1538315352106929)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSkuGetItemsByCategoryId(t *testing.T) {
|
||||
result, err := api.SkuGetItemsByCategoryId(testShopID, 0)
|
||||
result, err := api.SkuGetItemsByCategoryId(testShopID, 153838813210900)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
} else {
|
||||
@@ -48,7 +48,10 @@ func TestSkuGetItemsByCategoryId(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSkuList(t *testing.T) {
|
||||
result, err := api.SkuList(testShopID, nil)
|
||||
result, err := api.SkuList(testShopID, map[string]interface{}{
|
||||
// "sku_id": 15381031761764456,
|
||||
// "delete": 1,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
} else {
|
||||
@@ -57,7 +60,7 @@ func TestSkuList(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSkuCreate(t *testing.T) {
|
||||
result, err := api.SkuCreate(testShopID, 116, map[string]interface{}{
|
||||
result, err := api.SkuCreate(testShopID, 10, map[string]interface{}{
|
||||
"name": "测试商品",
|
||||
"status": SkuStatusOnline,
|
||||
"left_num": MaxLeftNum,
|
||||
|
||||
Reference in New Issue
Block a user