WIN-2308041133\Administrator преди 1 седмица
родител
ревизия
7852cfdce0
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      app/services/order/StoreOrderComputedServices.php

+ 4 - 0
app/services/order/StoreOrderComputedServices.php

@@ -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';