diff --git a/src/Gateways/Wechat/Wechat.php b/src/Gateways/Wechat/Wechat.php index 8e2d4db7f..3d0fc924d 100644 --- a/src/Gateways/Wechat/Wechat.php +++ b/src/Gateways/Wechat/Wechat.php @@ -84,8 +84,8 @@ abstract public function pay(array $config_biz = []); public function refund($config_biz = []) { $this->config = array_merge($this->config, $config_biz); - $this->config['total_fee'] = intval($this->config['total_fee'] * 100); - $this->config['refund_fee'] = intval($this->config['refund_fee'] * 100); + $this->config['total_fee'] = $this->config['total_fee']; + $this->config['refund_fee'] = $this->config['refund_fee']; $this->config['op_user_id'] = isset($this->config['op_user_id']) ?: $this->user_config->get('mch_id', ''); $this->unsetTradeTypeAndNotifyUrl(); @@ -168,7 +168,7 @@ abstract protected function getTradeType(); protected function preOrder($config_biz = []) { $this->config = array_merge($this->config, $config_biz); - $this->config['total_fee'] = intval($this->config['total_fee'] * 100); + $this->config['total_fee'] = $this->config['total_fee']; return $this->getResult($this->gateway); }