This commit is contained in:
suyl
2021-06-08 17:08:45 +08:00
parent 8c766e815f
commit 1ef746957f

View File

@@ -29,7 +29,7 @@ func (s *StoreManager) OnStoreStatusChanged(vendorStoreID string, vendorID int,
db := dao.GetDB() db := dao.GetDB()
storeDetail, err := dao.GetStoreDetailByVendorStoreID(db, vendorStoreID, vendorID, "") storeDetail, err := dao.GetStoreDetailByVendorStoreID(db, vendorStoreID, vendorID, "")
if err == nil { if err == nil {
if storeDetail.IsSync == model.NO { if storeDetail.IsSync == model.NO || storeDetail.Status == model.StoreStatusDisabled {
return err return err
} }
var storeKV, storeMapKV map[string]interface{} var storeKV, storeMapKV map[string]interface{}