From 9a830f81680fa026557a47c7990b6a6bf65bce87 Mon Sep 17 00:00:00 2001 From: qq690712575 <690712575@qq.com> Date: Fri, 22 Dec 2017 09:54:14 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=99=AE=E9=80=9A=E7=BA=A2=E5=8C=85=E3=80=81=E8=A3=82=E5=8F=98?= =?UTF-8?q?=E7=BA=A2=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/Wechat/GroupredpackGateway.php | 93 +++++++++++++++++++++ src/Gateways/Wechat/RedPackGateway.php | 93 +++++++++++++++++++++ 2 files changed, 186 insertions(+) create mode 100644 src/Gateways/Wechat/GroupredpackGateway.php create mode 100644 src/Gateways/Wechat/RedPackGateway.php diff --git a/src/Gateways/Wechat/GroupredpackGateway.php b/src/Gateways/Wechat/GroupredpackGateway.php new file mode 100644 index 000000000..3965f151f --- /dev/null +++ b/src/Gateways/Wechat/GroupredpackGateway.php @@ -0,0 +1,93 @@ + + * + * @param array $config_biz + * + * @return mixed + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('app_id'))) { + throw new InvalidArgumentException('Missing Config -- [app_id]'); + } + + + unset($this->config['sign_type']); + unset($this->config['trade_type']); + unset($this->config['notify_url']); + unset($this->config['app_id']); + unset($this->config['appid']); + + $this->config = array_merge($this->config, $config_biz); + + $this->config['sign'] = $this->getSign($this->config); + dump($this->config); + + $data = $this->fromXml($this->post( + $this->endpoint . $this->gateway_transfer, + $this->toXml($this->config), + [ + 'cert' => $this->user_config->get('cert_client', ''), + 'ssl_key' => $this->user_config->get('cert_key', ''), + ] + )); + //Log::info('xmd=='.$data); + + + if (!isset($data['return_code']) || $data['return_code'] !== 'SUCCESS' || $data['result_code'] !== 'SUCCESS') { + $error = 'getResult error:' . $data['return_msg']; + $error .= isset($data['err_code_des']) ? ' - ' . $data['err_code_des'] : ''; + } + + if (isset($error)) { + throw new GatewayException( + $error, + 20000, + $data); + } + + return $data; + + + } + + /** + * get trade type config. + * + * @author yansongda + * + * @return string + */ + protected function getTradeType() + { + return ''; + } +} \ No newline at end of file diff --git a/src/Gateways/Wechat/RedPackGateway.php b/src/Gateways/Wechat/RedPackGateway.php new file mode 100644 index 000000000..3cd67ea37 --- /dev/null +++ b/src/Gateways/Wechat/RedPackGateway.php @@ -0,0 +1,93 @@ + + * + * @param array $config_biz + * + * @return mixed + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('app_id'))) { + throw new InvalidArgumentException('Missing Config -- [app_id]'); + } + + + unset($this->config['sign_type']); + unset($this->config['trade_type']); + unset($this->config['notify_url']); + unset($this->config['app_id']); + unset($this->config['appid']); + + $this->config = array_merge($this->config, $config_biz); + + $this->config['sign'] = $this->getSign($this->config); + dump($this->config); + + $data = $this->fromXml($this->post( + $this->endpoint . $this->gateway_transfer, + $this->toXml($this->config), + [ + 'cert' => $this->user_config->get('cert_client', ''), + 'ssl_key' => $this->user_config->get('cert_key', ''), + ] + )); + //Log::info('xmd=='.$data); + + + if (!isset($data['return_code']) || $data['return_code'] !== 'SUCCESS' || $data['result_code'] !== 'SUCCESS') { + $error = 'getResult error:' . $data['return_msg']; + $error .= isset($data['err_code_des']) ? ' - ' . $data['err_code_des'] : ''; + } + + if (isset($error)) { + throw new GatewayException( + $error, + 20000, + $data); + } + + return $data; + + + } + + /** + * get trade type config. + * + * @author yansongda + * + * @return string + */ + protected function getTradeType() + { + return ''; + } +} \ No newline at end of file From 010977152d3bee75fee130216559aa085f92d031 Mon Sep 17 00:00:00 2001 From: qq690712575 <690712575@qq.com> Date: Fri, 22 Dec 2017 10:17:34 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E7=BA=A2=E5=8C=85=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/README.md b/README.md index 19232ab32..eab2ad6ca 100644 --- a/README.md +++ b/README.md @@ -871,7 +871,101 @@ $config_biz = [ 类型:array 说明:返回用于 支付结果 的数组。具体请 [参考这里](https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_2)。 +### 13、微信 - 发放裂变红包 +#### 最小配置参数 +```php + [ + 'app_id'=>'wxaxxxxxxxx', + 'mch_id' => '1442222202', + 'key' => 'ddddddddddddddd', + 'cert_client' => 'D:\php\xxx\application\wxpay\cert\apiclient_cert.pem', + 'cert_key' => 'D:\php\xxx\application\wxpay\cert\apiclient_key.pem', + ], + ]; + + $config_biz = [ + 'wxappid'=>'wxaxxxxxxxx', + 'mch_billno' => 'hb'.time(), + 'send_name'=>'萌点云科技',//商户名称 + 're_openid'=>'ogg5JwsssssssssssCdXeD_S54',//用户openid + 'total_amount' =>333, // 付款金额,单位分 + 'wishing'=>'提前祝你狗年大吉',//红包祝福语 + 'client_ip'=>'192.168.0.1',//调用接口的机器Ip地址 + 'total_num'=>'3',//红包发放总人数 + 'act_name'=>'提前拜年',//活动名称 + 'remark'=>'提前祝你狗年大吉,苟富贵勿相忘!', //备注 + 'amt_type'=>'ALL_RAND',//ALL_RAND—全部随机,商户指定总金额和红包发放总人数,由微信支付随机计算出各红包金额 + ]; + + $pay = new Pay($config); + try + { + $res= $pay->driver('wechat')->gateway('groupredpack')->pay($config_biz); + + }catch (Exception $e){ + + } + +``` + +#### 所有配置参数 +具体请看 [官方文档](https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_5&index=4)。 + +#### 返回值 +- pay() +类型:array +说明:返回用于 支付结果 的数组。具体请 [参考这里](https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_5&index=4)。 + + +### 14、微信 - 发放普通红包 + +#### 最小配置参数 +```php + [ + 'app_id'=>'wxaxxxxxxxx', + 'mch_id' => '1442222202', + 'key' => 'ddddddddddddddd', + 'cert_client' => 'D:\php\xxx\application\wxpay\cert\apiclient_cert.pem', + 'cert_key' => 'D:\php\xxx\application\wxpay\cert\apiclient_key.pem', + ], + ]; + + $config_biz = [ + 'wxappid'=>'wxaxxxxxxxx', + 'mch_billno' => 'hb'.time(), + 'send_name'=>'萌点云科技',//商户名称 + 're_openid'=>'ogg5JwsssssssssssCdXeD_S54',//用户openid + 'total_amount' =>100, // 付款金额,单位分 + 'wishing'=>'提前祝你狗年大吉',//红包祝福语 + 'client_ip'=>'192.168.0.1',//调用接口的机器Ip地址 + 'total_num'=>'1',//红包发放总人数 + 'act_name'=>'提前拜年',//活动名称 + 'remark'=>'提前祝你狗年大吉,苟富贵勿相忘!', //备注 + ]; + + $pay = new Pay($config); + try + { + $res= $pay->driver('wechat')->gateway('redpack')->pay($config_biz); + + }catch (Exception $e){ + + } + +``` + +#### 所有配置参数 +具体请看 [官方文档](https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_4&index=3)。 + +#### 返回值 +- pay() +类型:array +说明:返回用于 支付结果 的数组。具体请 [参考这里](https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_4&index=3)。 ## 代码贡献 由于测试及使用环境的限制,本项目中只开发了「支付宝」和「微信支付」的相关支付网关。 From c73010299b325dbd559aba6af492d48ecd4fc36b Mon Sep 17 00:00:00 2001 From: qq690712575 <690712575@qq.com> Date: Fri, 22 Dec 2017 10:21:15 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=A3=8E=E6=A0=BC?= =?UTF-8?q?=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/Wechat/GroupredpackGateway.php | 2 -- src/Gateways/Wechat/RedPackGateway.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/Gateways/Wechat/GroupredpackGateway.php b/src/Gateways/Wechat/GroupredpackGateway.php index 3965f151f..34d8238fc 100644 --- a/src/Gateways/Wechat/GroupredpackGateway.php +++ b/src/Gateways/Wechat/GroupredpackGateway.php @@ -8,12 +8,10 @@ * Com:萌点云科技(深圳)有限公司 * Author:陈老司机 * Email:690712575@qq.com - * @package Yansongda\Pay\Gateways\Wechat */ namespace Yansongda\Pay\Gateways\Wechat; -use think\Log; use Yansongda\Pay\Exceptions\GatewayException; use Yansongda\Pay\Exceptions\InvalidArgumentException; diff --git a/src/Gateways/Wechat/RedPackGateway.php b/src/Gateways/Wechat/RedPackGateway.php index 3cd67ea37..d210c5fbf 100644 --- a/src/Gateways/Wechat/RedPackGateway.php +++ b/src/Gateways/Wechat/RedPackGateway.php @@ -8,12 +8,10 @@ * Com:萌点云科技(深圳)有限公司 * Author:陈老司机 * Email:690712575@qq.com - * @package Yansongda\Pay\Gateways\Wechat */ namespace Yansongda\Pay\Gateways\Wechat; -use think\Log; use Yansongda\Pay\Exceptions\GatewayException; use Yansongda\Pay\Exceptions\InvalidArgumentException; From 429e56e8c40423e7048dc23d3fd7029cc613ced6 Mon Sep 17 00:00:00 2001 From: qq690712575 <690712575@qq.com> Date: Fri, 22 Dec 2017 10:30:42 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=B8=8B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/Wechat/GroupredpackGateway.php | 20 +++++--------------- src/Gateways/Wechat/RedPackGateway.php | 17 ++++++----------- 2 files changed, 11 insertions(+), 26 deletions(-) diff --git a/src/Gateways/Wechat/GroupredpackGateway.php b/src/Gateways/Wechat/GroupredpackGateway.php index 34d8238fc..36c5f71a4 100644 --- a/src/Gateways/Wechat/GroupredpackGateway.php +++ b/src/Gateways/Wechat/GroupredpackGateway.php @@ -7,6 +7,7 @@ * Time: 19:23 * Com:萌点云科技(深圳)有限公司 * Author:陈老司机 + * * Email:690712575@qq.com */ @@ -15,6 +16,7 @@ use Yansongda\Pay\Exceptions\GatewayException; use Yansongda\Pay\Exceptions\InvalidArgumentException; + class GroupredpackGateway extends Wechat { /** @@ -36,33 +38,24 @@ public function pay(array $config_biz = []) if (is_null($this->user_config->get('app_id'))) { throw new InvalidArgumentException('Missing Config -- [app_id]'); } - - unset($this->config['sign_type']); unset($this->config['trade_type']); unset($this->config['notify_url']); unset($this->config['app_id']); unset($this->config['appid']); - $this->config = array_merge($this->config, $config_biz); - $this->config['sign'] = $this->getSign($this->config); - dump($this->config); - $data = $this->fromXml($this->post( $this->endpoint . $this->gateway_transfer, $this->toXml($this->config), [ - 'cert' => $this->user_config->get('cert_client', ''), + 'cert' => $this->user_config->get('cert_client', ''), 'ssl_key' => $this->user_config->get('cert_key', ''), ] )); - //Log::info('xmd=='.$data); - - if (!isset($data['return_code']) || $data['return_code'] !== 'SUCCESS' || $data['result_code'] !== 'SUCCESS') { - $error = 'getResult error:' . $data['return_msg']; - $error .= isset($data['err_code_des']) ? ' - ' . $data['err_code_des'] : ''; + $error = 'getResult error:'.$data['return_msg']; + $error .= isset($data['err_code_des']) ? ' - ' .$data['err_code_des'] : ''; } if (isset($error)) { @@ -71,10 +64,7 @@ public function pay(array $config_biz = []) 20000, $data); } - return $data; - - } /** diff --git a/src/Gateways/Wechat/RedPackGateway.php b/src/Gateways/Wechat/RedPackGateway.php index d210c5fbf..c9dbe9fb7 100644 --- a/src/Gateways/Wechat/RedPackGateway.php +++ b/src/Gateways/Wechat/RedPackGateway.php @@ -7,6 +7,7 @@ * Time: 19:23 * Com:萌点云科技(深圳)有限公司 * Author:陈老司机 + * * Email:690712575@qq.com */ @@ -15,6 +16,7 @@ use Yansongda\Pay\Exceptions\GatewayException; use Yansongda\Pay\Exceptions\InvalidArgumentException; + class RedpackGateway extends Wechat { /** @@ -36,8 +38,6 @@ public function pay(array $config_biz = []) if (is_null($this->user_config->get('app_id'))) { throw new InvalidArgumentException('Missing Config -- [app_id]'); } - - unset($this->config['sign_type']); unset($this->config['trade_type']); unset($this->config['notify_url']); @@ -47,22 +47,19 @@ public function pay(array $config_biz = []) $this->config = array_merge($this->config, $config_biz); $this->config['sign'] = $this->getSign($this->config); - dump($this->config); $data = $this->fromXml($this->post( - $this->endpoint . $this->gateway_transfer, + $this->endpoint.$this->gateway_transfer, $this->toXml($this->config), [ - 'cert' => $this->user_config->get('cert_client', ''), + 'cert' => $this->user_config->get('cert_client', ''), 'ssl_key' => $this->user_config->get('cert_key', ''), ] )); - //Log::info('xmd=='.$data); - if (!isset($data['return_code']) || $data['return_code'] !== 'SUCCESS' || $data['result_code'] !== 'SUCCESS') { - $error = 'getResult error:' . $data['return_msg']; - $error .= isset($data['err_code_des']) ? ' - ' . $data['err_code_des'] : ''; + $error = 'getResult error:'.$data['return_msg']; + $error .= isset($data['err_code_des']) ? ' - '.$data['err_code_des'] : ''; } if (isset($error)) { @@ -73,8 +70,6 @@ public function pay(array $config_biz = []) } return $data; - - } /** From 5ab20c7fbfbb3dadb4f9753631a1e9d04de5f34a Mon Sep 17 00:00:00 2001 From: qq690712575 <690712575@qq.com> Date: Fri, 22 Dec 2017 10:38:00 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/Wechat/GroupredpackGateway.php | 6 +++--- src/Gateways/Wechat/RedPackGateway.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Gateways/Wechat/GroupredpackGateway.php b/src/Gateways/Wechat/GroupredpackGateway.php index 36c5f71a4..ce9acfd33 100644 --- a/src/Gateways/Wechat/GroupredpackGateway.php +++ b/src/Gateways/Wechat/GroupredpackGateway.php @@ -6,6 +6,7 @@ * Date: 2017/12/21 * Time: 19:23 * Com:萌点云科技(深圳)有限公司 + * * Author:陈老司机 * * Email:690712575@qq.com @@ -16,7 +17,6 @@ use Yansongda\Pay\Exceptions\GatewayException; use Yansongda\Pay\Exceptions\InvalidArgumentException; - class GroupredpackGateway extends Wechat { /** @@ -46,7 +46,7 @@ public function pay(array $config_biz = []) $this->config = array_merge($this->config, $config_biz); $this->config['sign'] = $this->getSign($this->config); $data = $this->fromXml($this->post( - $this->endpoint . $this->gateway_transfer, + $this->endpoint.$this->gateway_transfer, $this->toXml($this->config), [ 'cert' => $this->user_config->get('cert_client', ''), @@ -55,7 +55,7 @@ public function pay(array $config_biz = []) )); if (!isset($data['return_code']) || $data['return_code'] !== 'SUCCESS' || $data['result_code'] !== 'SUCCESS') { $error = 'getResult error:'.$data['return_msg']; - $error .= isset($data['err_code_des']) ? ' - ' .$data['err_code_des'] : ''; + $error .= isset($data['err_code_des']) ? ' - '.$data['err_code_des'] : ''; } if (isset($error)) { diff --git a/src/Gateways/Wechat/RedPackGateway.php b/src/Gateways/Wechat/RedPackGateway.php index c9dbe9fb7..f4516657f 100644 --- a/src/Gateways/Wechat/RedPackGateway.php +++ b/src/Gateways/Wechat/RedPackGateway.php @@ -6,6 +6,7 @@ * Date: 2017/12/21 * Time: 19:23 * Com:萌点云科技(深圳)有限公司 + * * Author:陈老司机 * * Email:690712575@qq.com @@ -16,7 +17,6 @@ use Yansongda\Pay\Exceptions\GatewayException; use Yansongda\Pay\Exceptions\InvalidArgumentException; - class RedpackGateway extends Wechat { /** From 0d0b84e43781c61da2f667c2a98783f6235d7c5e Mon Sep 17 00:00:00 2001 From: qq690712575 <690712575@qq.com> Date: Fri, 22 Dec 2017 10:53:03 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=A3=8E=E6=A0=BC?= =?UTF-8?q?=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/Wechat/GroupredpackGateway.php | 5 ++++- src/Gateways/Wechat/RedPackGateway.php | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Gateways/Wechat/GroupredpackGateway.php b/src/Gateways/Wechat/GroupredpackGateway.php index ce9acfd33..4fdacc4d4 100644 --- a/src/Gateways/Wechat/GroupredpackGateway.php +++ b/src/Gateways/Wechat/GroupredpackGateway.php @@ -5,7 +5,7 @@ * Class GroupredpackGateway * Date: 2017/12/21 * Time: 19:23 - * Com:萌点云科技(深圳)有限公司 + * Com:萌点云科技(深圳)有限公司. * * Author:陈老司机 * @@ -64,6 +64,8 @@ public function pay(array $config_biz = []) 20000, $data); } + + return $data; } @@ -78,4 +80,5 @@ protected function getTradeType() { return ''; } + } \ No newline at end of file diff --git a/src/Gateways/Wechat/RedPackGateway.php b/src/Gateways/Wechat/RedPackGateway.php index f4516657f..30d97ab49 100644 --- a/src/Gateways/Wechat/RedPackGateway.php +++ b/src/Gateways/Wechat/RedPackGateway.php @@ -5,7 +5,7 @@ * Class RedPackGateway * Date: 2017/12/21 * Time: 19:23 - * Com:萌点云科技(深圳)有限公司 + * Com:萌点云科技(深圳)有限公司. * * Author:陈老司机 * @@ -58,7 +58,7 @@ public function pay(array $config_biz = []) )); if (!isset($data['return_code']) || $data['return_code'] !== 'SUCCESS' || $data['result_code'] !== 'SUCCESS') { - $error = 'getResult error:'.$data['return_msg']; + $error = 'getResult error:'.$data['return_msg']; $error .= isset($data['err_code_des']) ? ' - '.$data['err_code_des'] : ''; } From 68bdfe07aece5a2694c3ab4b022f950c67777542 Mon Sep 17 00:00:00 2001 From: qq690712575 <690712575@qq.com> Date: Fri, 22 Dec 2017 10:56:03 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E5=8F=88=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/Wechat/GroupredpackGateway.php | 2 -- src/Gateways/Wechat/RedPackGateway.php | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Gateways/Wechat/GroupredpackGateway.php b/src/Gateways/Wechat/GroupredpackGateway.php index 4fdacc4d4..187b3b92c 100644 --- a/src/Gateways/Wechat/GroupredpackGateway.php +++ b/src/Gateways/Wechat/GroupredpackGateway.php @@ -65,7 +65,6 @@ public function pay(array $config_biz = []) $data); } - return $data; } @@ -80,5 +79,4 @@ protected function getTradeType() { return ''; } - } \ No newline at end of file diff --git a/src/Gateways/Wechat/RedPackGateway.php b/src/Gateways/Wechat/RedPackGateway.php index 30d97ab49..a78767673 100644 --- a/src/Gateways/Wechat/RedPackGateway.php +++ b/src/Gateways/Wechat/RedPackGateway.php @@ -17,6 +17,7 @@ use Yansongda\Pay\Exceptions\GatewayException; use Yansongda\Pay\Exceptions\InvalidArgumentException; + class RedpackGateway extends Wechat { /** From 7a26fbb1d488058286d037d83fd0456cbf4f300f Mon Sep 17 00:00:00 2001 From: qq690712575 <690712575@qq.com> Date: Fri, 22 Dec 2017 11:00:43 +0800 Subject: [PATCH 8/9] =?UTF-8?q?=E4=BC=B0=E8=AE=A1=E5=A5=BD=E4=BA=86?= =?UTF-8?q?=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/Wechat/GroupredpackGateway.php | 2 +- src/Gateways/Wechat/RedPackGateway.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Gateways/Wechat/GroupredpackGateway.php b/src/Gateways/Wechat/GroupredpackGateway.php index 187b3b92c..2e76f1023 100644 --- a/src/Gateways/Wechat/GroupredpackGateway.php +++ b/src/Gateways/Wechat/GroupredpackGateway.php @@ -79,4 +79,4 @@ protected function getTradeType() { return ''; } -} \ No newline at end of file +} diff --git a/src/Gateways/Wechat/RedPackGateway.php b/src/Gateways/Wechat/RedPackGateway.php index a78767673..557a92ed4 100644 --- a/src/Gateways/Wechat/RedPackGateway.php +++ b/src/Gateways/Wechat/RedPackGateway.php @@ -17,7 +17,6 @@ use Yansongda\Pay\Exceptions\GatewayException; use Yansongda\Pay\Exceptions\InvalidArgumentException; - class RedpackGateway extends Wechat { /** @@ -84,4 +83,4 @@ protected function getTradeType() { return ''; } -} \ No newline at end of file +} From 7d11f1df542982e4e5d3ecc772eff1ec0b77f22f Mon Sep 17 00:00:00 2001 From: qq690712575 <690712575@qq.com> Date: Fri, 22 Dec 2017 11:02:20 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E7=9C=9F=E7=9A=84=E5=A5=BD=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/Wechat/{RedPackGateway.php => RedpackGateway.php} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/Gateways/Wechat/{RedPackGateway.php => RedpackGateway.php} (100%) diff --git a/src/Gateways/Wechat/RedPackGateway.php b/src/Gateways/Wechat/RedpackGateway.php similarity index 100% rename from src/Gateways/Wechat/RedPackGateway.php rename to src/Gateways/Wechat/RedpackGateway.php