diff --git a/platformapi/ebaiapi/shop.go b/platformapi/ebaiapi/shop.go index c7a56775..99dd9da5 100644 --- a/platformapi/ebaiapi/shop.go +++ b/platformapi/ebaiapi/shop.go @@ -164,7 +164,7 @@ func (a *API) ShopIDBatchUpdate(baiduShopIDs []string, shopIDs []string) (err er return err } -func (a *API) ShopOnline(shopID string, baiduShopID int64) (err error) { +func (a *API) ShopOpen(shopID string, baiduShopID int64) (err error) { params := a.genShopIDParams(shopID, baiduShopID, 0) _, err = a.AccessAPI("shop.open", params) if err == nil { diff --git a/platformapi/ebaiapi/shop_test.go b/platformapi/ebaiapi/shop_test.go index 35b93923..2bdef1a8 100644 --- a/platformapi/ebaiapi/shop_test.go +++ b/platformapi/ebaiapi/shop_test.go @@ -91,8 +91,15 @@ func TestSupplierList(t *testing.T) { } } -func TestShopOnline(t *testing.T) { - err := api.ShopOnline("", testShopBaiduID) +func TestShopOpen(t *testing.T) { + err := api.ShopOpen("", testShopBaiduID) + if err != nil { + t.Fatal(err) + } +} + +func TestShopClose(t *testing.T) { + err := api.ShopClose("", testShopBaiduID) if err != nil { t.Fatal(err) }