aa
This commit is contained in:
@@ -29,6 +29,9 @@ 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 {
|
||||||
|
return err
|
||||||
|
}
|
||||||
var storeKV, storeMapKV map[string]interface{}
|
var storeKV, storeMapKV map[string]interface{}
|
||||||
if storeStatus == model.StoreStatusOpened {
|
if storeStatus == model.StoreStatusOpened {
|
||||||
if storeDetail.Status != model.StoreStatusOpened {
|
if storeDetail.Status != model.StoreStatusOpened {
|
||||||
|
|||||||
Reference in New Issue
Block a user