|
|
@@ -893,7 +893,7 @@ class ProductClass extends BaseClass
|
|
|
unset($upData['status']);
|
|
|
|
|
|
if (isset($shop->default) && $shop->default == 1) {
|
|
|
- //首店修改同步到所有直营店
|
|
|
+ //首店修改同步到所有直营店,暂不同时修改加盟店
|
|
|
$chainShopList = ShopClass::getAllByCondition(['sjId' => $sjId], null, '*', null, true);
|
|
|
foreach ($chainShopList as $chainShop) {
|
|
|
$chainShopId = $chainShop->id ?? 0;
|
|
|
@@ -1245,14 +1245,11 @@ class ProductClass extends BaseClass
|
|
|
StockRecordClass::addCheckOrderRecord($record);
|
|
|
}
|
|
|
|
|
|
- //在首店添加,则找到父级sj下的所有直营店,同步添加花材
|
|
|
+ //在首店添加,则找到父级sj下的所有直营和加盟店,都进行同步
|
|
|
if (isset($currentShop->default) && $currentShop->default == 1) {
|
|
|
$shopList = ShopClass::getAllByCondition(['sjId' => $data['sjId']], null, '*', null, true);
|
|
|
foreach ($shopList as $shop) {
|
|
|
$shopId = $shop->id ?? 0;
|
|
|
- if (isset($shop->join) && $shop->join == 1) {
|
|
|
- continue;
|
|
|
- }
|
|
|
if ($shopId == $currentShop->id) {
|
|
|
//前面已经添加过了
|
|
|
continue;
|