From 103d039a13f5cfaa1a7c6c821d49c741ce052081 Mon Sep 17 00:00:00 2001 From: taobig Date: Sun, 3 Sep 2017 22:27:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=AF=B9=E4=BC=A0=E5=85=A5=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E8=BF=9B=E8=A1=8C*100=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/Wechat/Wechat.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }