1
This commit is contained in:
@@ -277,13 +277,13 @@ func (a *API) ShopOffline(shopID string, baiduShopID int64) (err error) {
|
||||
}
|
||||
|
||||
func (a *API) ShopClose(shopID string, baiduShopID int64) (err error) {
|
||||
status, _ := a.ShopBusStatusGet(shopID, baiduShopID, PlatformFlagElm)
|
||||
if status != ShopBusStatusOpening {
|
||||
status, err := a.ShopBusStatusGet(shopID, baiduShopID, PlatformFlagElm)
|
||||
if status == ShopBusStatusOpening {
|
||||
params := a.genShopIDParams(shopID, baiduShopID, 0)
|
||||
_, err = a.AccessAPI("shop.close", params)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
func (a *API) SupplierList() (supplierInfo map[string]interface{}, err error) {
|
||||
|
||||
Reference in New Issue
Block a user