From f57f232bc02d767d4d23f1cfac79fb16ce14bc57 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 4 May 2018 18:43:27 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E4=BA=8C=E7=BB=B4=E7=A0=81=E6=94=AF=E4=BB=98=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/store/controller/wechat/Demo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/store/controller/wechat/Demo.php b/application/store/controller/wechat/Demo.php index 29c4681a2..105ec1eba 100644 --- a/application/store/controller/wechat/Demo.php +++ b/application/store/controller/wechat/Demo.php @@ -47,7 +47,8 @@ class Demo */ public function scanOneNotify() { - $notify = \WeChat\Contracts\Tools::xml2arr(file_get_contents('php://input')); + $wechat = new Pay(config('wechat.')); + $notify = $wechat->getNotify(); p('======= 来自扫码支付1的数据 ======'); p($notify); // 产品ID @todo 你的业务,并实现下面的统一下单操作 @@ -61,7 +62,6 @@ class Demo 'notify_url' => url('@wx-demo-notify', '', true, true), 'spbill_create_ip' => request()->ip(), ]; - $wechat = new Pay(config('wechat.')); $order = $wechat->createOrder($options); p('======= 来自扫码支付1统一下单结果 ======'); p($order);