WIN-2308041133\Administrator 2 weken geleden
bovenliggende
commit
39d224dd9e
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      app/services/order/StoreOrderComputedServices.php

+ 3 - 3
app/services/order/StoreOrderComputedServices.php

@@ -78,7 +78,7 @@ class StoreOrderComputedServices extends BaseServices
      * @param int $shipping_type
      * @return array
      */
-    public function computedOrder(int $uid, array $userInfo = [], array $cartGroup, int $addressId, string $payType, bool $useIntegral = false, int $couponId = 0, bool $isCreate = false, int $shippingType = 1)
+    public function computedOrder(int $uid, array $userInfo = [], array &$cartGroup, int $addressId, string $payType, bool $useIntegral = false, int $couponId = 0, bool $isCreate = false, int $shippingType = 1)
     {
         $offlinePayStatus = (int)sys_config('offline_pay_status') ?? (int)2;
         $systemPayType = PayServices::PAY_TYPE;
@@ -91,8 +91,8 @@ class StoreOrderComputedServices extends BaseServices
                 throw new ApiException(410032);
             }
         }
-        $cartInfo = $cartGroup['cartInfo'];
-        $priceGroup = $cartGroup['priceGroup'];
+        $cartInfo = &$cartGroup['cartInfo'];
+        $priceGroup = &$cartGroup['priceGroup'];
         $other = $cartGroup['other'];
         $payPrice = (float)$priceGroup['totalPrice'];
         $addr = $cartGroup['addr'] ?? [];