WIN-2308041133\Administrator 2 months ago
parent
commit
3fc5285808
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/services/order/StoreOrderCreateServices.php

+ 4 - 4
app/services/order/StoreOrderCreateServices.php

@@ -226,10 +226,10 @@ class StoreOrderCreateServices extends BaseServices
                 if (!$advanceId) $advanceId = $cart['advance_id'];
                 $cartInfoGainIntegral = isset($cart['productInfo']['give_integral']) ? bcmul((string)$cart['cart_num'], (string)$cart['productInfo']['give_integral'], 0) : 0;
                 $gainIntegral = bcadd((string)$gainIntegral, (string)$cartInfoGainIntegral, 0);
-//            if ($cart['productAttr']['product']['is_lb']==1){
-//                $is_lb = 1;
-//            }
-                @file_put_contents('quanju.txt', json_encode($cart) . "-购物车\r\n", 8);
+            if ($cart['productInfo']['is_lb']==1){
+                $is_lb = 1;
+            }
+//                @file_put_contents('quanju.txt', json_encode($cart) . "-购物车\r\n", 8);
 
             }
             if (count($cartInfo) == 1 && isset($cartInfo[0]['productInfo']['presale']) && $cartInfo[0]['productInfo']['presale'] == 1) {