|
|
@@ -136,7 +136,7 @@ class BookItemClass extends BaseClass
|
|
|
$bookCustomRes = BookCustomChangeClass::delBookNum($bookCustomRes, $num, $order, $shop, $product, $params);
|
|
|
|
|
|
//预订变化通知 ssh 20240820
|
|
|
- $noticeText = json_encode(['orderId' => $orderId,'customName'=>$customName,'customId'=>$customId,'itemId'=>$itemId,'itemName'=>$name,'io'=>0,'num'=>$num,'shopId'=>$shopId]);
|
|
|
+ $noticeText = json_encode(['orderId' => $orderId, 'customName' => $customName, 'customId' => $customId, 'itemId' => $itemId, 'itemName' => $name, 'io' => 0, 'num' => $num, 'shopId' => $shopId]);
|
|
|
$noticeKey = "bookChangeNoticeStaff";
|
|
|
Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
|
|
|
|
|
|
@@ -209,6 +209,7 @@ class BookItemClass extends BaseClass
|
|
|
//批量添加预订花材 ssh 20240711
|
|
|
public static function addBatchItem($batchData, $order, $params = [])
|
|
|
{
|
|
|
+ $action = $params['action'] ?? 'update';
|
|
|
$orderId = $order->id ?? 0;
|
|
|
$shopId = $order->shopId ?? 0;
|
|
|
$shop = ShopClass::getById($shopId, true);
|
|
|
@@ -353,9 +354,11 @@ class BookItemClass extends BaseClass
|
|
|
Yii::$app->redis->executeCommand('SADD', [$cacheKey, $bookSn]);
|
|
|
|
|
|
//预订变化通知
|
|
|
- $noticeText = json_encode(['orderId' => $orderId,'customName'=>$customName,'customId'=>$customId,'itemId'=>$itemId,'itemName'=>$name,'io'=>1,'num'=>$num,'shopId'=>$shopId]);
|
|
|
- $noticeKey = "bookChangeNoticeStaff";
|
|
|
- Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
|
|
|
+ if($action == 'update'){
|
|
|
+ $noticeText = json_encode(['orderId' => $orderId, 'customName' => $customName, 'customId' => $customId, 'itemId' => $itemId, 'itemName' => $name, 'io' => 1, 'num' => $num, 'shopId' => $shopId]);
|
|
|
+ $noticeKey = "bookChangeNoticeStaff";
|
|
|
+ Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|