This commit is contained in:
邹宗楠
2023-11-24 09:55:44 +08:00
parent 8efea314e8
commit 10c7f0eaa9

View File

@@ -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) {