moonsflyer il y a 5 mois
Parent
commit
f9853df52d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/common/service/pay/MixedPayService.php

+ 1 - 1
app/common/service/pay/MixedPayService.php

@@ -144,7 +144,7 @@ class MixedPayService extends BasePayService
 
 
             // 创建微信支付订单(金额为剩余需要支付的金额)
             // 创建微信支付订单(金额为剩余需要支付的金额)
             $wechatOrder = $order;
             $wechatOrder = $order;
-            $wechatOrder['order_amount'] = $wechatAmount;
+            $wechatOrder['order_amount'] = round($wechatAmount,2);
             $wechatOrder['balance_amount'] = $balanceAmount; // 记录已使用的余额金额
             $wechatOrder['balance_amount'] = $balanceAmount; // 记录已使用的余额金额
 
 
             file_put_contents(
             file_put_contents(