|
|
@@ -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'] ?? [];
|