diff --git a/app/common/service/pay/WeChatPayMerchantService.php b/app/common/service/pay/WeChatPayMerchantService.php index f75c180..153822f 100644 --- a/app/common/service/pay/WeChatPayMerchantService.php +++ b/app/common/service/pay/WeChatPayMerchantService.php @@ -87,7 +87,7 @@ class WeChatPayMerchantService extends BasePayService 'out_trade_no' => $order['order_no'], 'notify_url' => $this->config['notify_url'], 'amount' => [ - 'total' => intval(bcmul($order['total_fee'], 100,2 )), + 'total' => intval($order['total_fee']), 'currency' => 'CNY' ], 'attach' => $order['order_no'],