|
|
@@ -721,7 +721,7 @@ class ProductController extends BaseController
|
|
|
if (empty($ptItemId)) {
|
|
|
continue;
|
|
|
}
|
|
|
- if (isset($shop->default) && $shop->default == 1) {
|
|
|
+ if (isset($shop->default) && $shop->default == 1 && isset($shop->dataSync) && $shop->dataSync == 1) {
|
|
|
foreach ($chainShopList as $chainShop) {
|
|
|
$currentMainId = $chainShop->mainId ?? 0;
|
|
|
if ($currentMainId == $shop->mainId) {
|
|
|
@@ -783,7 +783,7 @@ class ProductController extends BaseController
|
|
|
if (empty($ptItemId)) {
|
|
|
continue;
|
|
|
}
|
|
|
- if (isset($shop->default) && $shop->default == 1) {
|
|
|
+ if (isset($shop->default) && $shop->default == 1 && isset($shop->dataSync) && $shop->dataSync == 1) {
|
|
|
foreach ($chainShopList as $chainShop) {
|
|
|
if (isset($chainShop->join) && $chainShop->join == 1) {
|
|
|
continue;
|
|
|
@@ -882,7 +882,7 @@ class ProductController extends BaseController
|
|
|
$product->save();
|
|
|
|
|
|
$ptItemId = $product->itemId ?? 0;
|
|
|
- if (isset($shop->default) && $shop->default == 1) {
|
|
|
+ if (isset($shop->default) && $shop->default == 1 && isset($shop->dataSync) && $shop->dataSync == 1) {
|
|
|
//总店修改同步到所有门店
|
|
|
$sjId = $shop->sjId ?? 0;
|
|
|
$chainShopList = ShopClass::getAllByCondition(['sjId' => $sjId], null, '*', null, true);
|
|
|
@@ -1070,7 +1070,7 @@ class ProductController extends BaseController
|
|
|
$ptItemList[] = $ptItemId;
|
|
|
}
|
|
|
$shop = $this->shop;
|
|
|
- if (isset($shop->default) && $shop->default == 1) {
|
|
|
+ if (isset($shop->default) && $shop->default == 1 && isset($shop->dataSync) && $shop->dataSync == 1) {
|
|
|
//总店修改同步到所有门店
|
|
|
$sjId = $shop->sjId ?? 0;
|
|
|
$chainShopList = ShopClass::getAllByCondition(['sjId' => $sjId], null, '*', null, true);
|