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