美团与饿百都不要下线门店(只休息)

This commit is contained in:
gazebo
2019-10-15 18:42:24 +08:00
parent 9fa29c18a2
commit baa0cce2bc
2 changed files with 3 additions and 2 deletions

View File

@@ -464,7 +464,8 @@ func (c *PurchaseHandler) updateStoreStatus(userName string, storeID int, vendor
} else if status == model.StoreStatusHaveRest || status == model.StoreStatusClosed {
err = api.EbaiAPI.ShopClose("", utils.Str2Int64(vendorStoreID))
} else if status == model.StoreStatusDisabled {
err = api.EbaiAPI.ShopOffline("", utils.Str2Int64(vendorStoreID))
err = api.EbaiAPI.ShopClose("", utils.Str2Int64(vendorStoreID))
// err = api.EbaiAPI.ShopOffline("", utils.Str2Int64(vendorStoreID))
}
}
if intErr, ok := err.(*utils.ErrorWithCode); ok && intErr.IntCode() == 201100 {