|
|
@@ -62,6 +62,7 @@ class MarketLogic
|
|
|
//是否全部取消
|
|
|
$rows = ProductTransfer::where('order_id', $orderId)->find();
|
|
|
$count = ProductTransfer::where('product_id', $orderInfo['product_id'])->where('status', ProductTransfer::Normal)->count();
|
|
|
+
|
|
|
if($count == 1){
|
|
|
$isUpdate = true;
|
|
|
$market->status = ProductMarket::Hidden;
|
|
|
@@ -81,7 +82,7 @@ class MarketLogic
|
|
|
$rows->save();
|
|
|
|
|
|
//新增记录
|
|
|
- return ProductOrder::setCreateOrder($orderId, $orderInfo, ProductOrder::Popular, $userId, $orderInfo['from_user'], getOrderSN('R'.$orderInfo['order_id']), 0, $orderInfo->popular_price);
|
|
|
+ return ProductOrder::setCreateOrder($orderInfo['order_id'], $orderInfo, ProductOrder::Popular, $userId, $orderInfo['from_user'], getOrderSN('R'.$orderInfo['order_id']), 0, $orderInfo->popular_price);
|
|
|
}
|
|
|
|
|
|
|