|
|
@@ -1408,6 +1408,11 @@ class ProductController extends BaseController
|
|
|
$post = Yii::$app->request->post();
|
|
|
|
|
|
$shop = $this->shop;
|
|
|
+ $sjName = $shop->merchantName ?? '';
|
|
|
+ $shopName = $shop->shopName ?? '';
|
|
|
+ $sjShopName = $shop->shopName == '首店' ? $sjName : $sjName . ' ' . $shopName;
|
|
|
+ noticeUtil::push($sjShopName . ' 批量移动花材分类', '15280215347');
|
|
|
+
|
|
|
$join = $shop->join ?? 0;
|
|
|
$default = $shop->default ?? 0;
|
|
|
if ($join == 0 && $default == 0) {
|
|
|
@@ -1444,6 +1449,11 @@ class ProductController extends BaseController
|
|
|
$item->save();
|
|
|
$ptItemId = $item->itemId ?? 0;
|
|
|
$ptItemList[] = $ptItemId;
|
|
|
+
|
|
|
+ //如果有修改分类,则在多个订单表中同步修改,如需修改,多个地方要同步修改,请搜索关键词item_class_modify_sync
|
|
|
+ $itemClassKey = 'item_class_modify_sync';
|
|
|
+ Yii::$app->redis->executeCommand('LPUSH', [$itemClassKey, $item->id]);
|
|
|
+
|
|
|
}
|
|
|
$shop = $this->shop;
|
|
|
if (isset($shop->default) && $shop->default == 1 && isset($shop->dataSync) && $shop->dataSync == 1) {
|
|
|
@@ -1467,6 +1477,11 @@ class ProductController extends BaseController
|
|
|
foreach ($chainProductList as $currentProduct) {
|
|
|
$currentProduct->classId = $chainClassId;
|
|
|
$currentProduct->save();
|
|
|
+
|
|
|
+ //如果有修改分类,则在多个订单表中同步修改,如需修改,多个地方要同步修改,请搜索关键词item_class_modify_sync
|
|
|
+ $itemClassKey = 'item_class_modify_sync';
|
|
|
+ Yii::$app->redis->executeCommand('LPUSH', [$itemClassKey, $currentProduct->id]);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|