|
|
@@ -118,7 +118,11 @@ class StoreOrderComputedServices extends BaseServices
|
|
|
$productIds = array_unique(array_column($cartInfo, 'product_id'));
|
|
|
/** @var StoreProductServices $productServices */
|
|
|
$productServices = app()->make(StoreProductServices::class);
|
|
|
+ @file_put_contents("quanju.txt", json_encode($productIds)."-商品id\r\n", 8);
|
|
|
+
|
|
|
$hasRepeat = $productServices->getCount([['id', 'in', $productIds], ['is_repeat', '=', 1]]) > 0;
|
|
|
+ @file_put_contents("quanju.txt", $hasRepeat."-是否是复购商品\r\n", 8);
|
|
|
+
|
|
|
if ($hasRepeat) {
|
|
|
// 将所有有会员折扣的商品还原为原价,重新汇总总价
|
|
|
$newTotalPrice = '0';
|