|
|
@@ -55,10 +55,11 @@ class ShopClass extends BaseClass
|
|
|
//创建main和复制花材
|
|
|
$main = MainClass::addMainCopyItem($oldMainId);
|
|
|
$mainId = $main->id ?? 0;
|
|
|
+
|
|
|
//复制产品
|
|
|
- $copyKey = 'copy_old_cp_to_new_cp';
|
|
|
- $copyValue = json_encode(['oldMainId' => $oldMainId, 'newMainId' => $mainId]);
|
|
|
- Yii::$app->redis->executeCommand('LPUSH', [$copyKey, $copyValue]);
|
|
|
+// $copyKey = 'copy_old_cp_to_new_cp';
|
|
|
+// $copyValue = json_encode(['oldMainId' => $oldMainId, 'newMainId' => $mainId]);
|
|
|
+// Yii::$app->redis->executeCommand('LPUSH', [$copyKey, $copyValue]);
|
|
|
|
|
|
$data['mainId'] = $mainId;
|
|
|
|