Ver código fonte

修复:微信退款时金额报错

萤火科技 4 anos atrás
pai
commit
0ba8f55a7d
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      app/common/library/wechat/WxPay.php

+ 2 - 2
app/common/library/wechat/WxPay.php

@@ -174,8 +174,8 @@ class WxPay extends WxBase
             'nonce_str' => $nonceStr,
             'transaction_id' => $transactionId,
             'out_refund_no' => $time,
-            'total_fee' => helper::bcmul($totalFee,100),
-            'refund_fee' => helper::bcmul($refundFee,100),
+            'total_fee' => (int)helper::bcmul($totalFee,100),
+            'refund_fee' => (int)helper::bcmul($refundFee,100),
         ];
         // 生成签名
         $params['sign'] = $this->makeSign($params);