From cc7cc97c6503e24973900d43917b72a544b0b6b2 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 4 May 2018 18:14:18 +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=E6=89=AB=E7=A0=81=E6=94=AF=E4=BB=98=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/store/controller/wechat/Demo.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/store/controller/wechat/Demo.php b/application/store/controller/wechat/Demo.php index e7139b2b1..5e56c2469 100644 --- a/application/store/controller/wechat/Demo.php +++ b/application/store/controller/wechat/Demo.php @@ -47,7 +47,7 @@ class Demo */ public function scanOneNotify() { - $notify = \WeChat\Tools::xml2arr(file_get_contents('php://input')); + $notify = \WeChat\Contracts\Tools::xml2arr(file_get_contents('php://input')); p('======= 来自扫码支付1的数据 ======'); p($notify); // 微信统一下单处理 @@ -69,14 +69,14 @@ class Demo 'return_msg' => '处理成功', 'appid' => $notify['appid'], 'mch_id' => $notify['mch_id'], - 'nonce_str' => \WeChat\Tools::createNoncestr(), + 'nonce_str' => \WeChat\Contracts\Tools::createNoncestr(), 'prepay_id' => $order['prepay_id'], 'result_code' => 'SUCCESS', ]; $result['sign'] = $wechat->getPaySign($result); p('======= 来自扫码支付1返回的结果 ======'); p($result); - return \WeChat\Tools::arr2xml($result); + return \WeChat\Contracts\Tools::arr2xml($result); } /**