shish 3 лет назад
Родитель
Сommit
d5c67d4d0d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-ghs/controllers/ItemClassController.php

+ 1 - 1
app-ghs/controllers/ItemClassController.php

@@ -88,7 +88,7 @@ class ItemClassController extends BaseController
 
         //在首店修改,则父级下所有直营和加盟店,同步修改
         $masterShop = $this->shop;
-        if (isset($masterShop->default) && $masterShop->default == 1) {
+        if (isset($masterShop->default) && $masterShop->default == 1 && isset($masterShop->dataSync) && $masterShop->dataSync == 1) {
             $sjId = $masterShop->sjId ?? 0;
             $shopList = ShopClass::getAllByCondition(['sjId' => $sjId], null, '*', null, true);
             foreach ($shopList as $shop) {