From b76d867c61e363ca9c21dbb344d740edd7fa4ce1 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 19 Jun 2020 11:02:55 +0800 Subject: [PATCH] Update Test.php --- app/wechat/controller/api/Test.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/wechat/controller/api/Test.php b/app/wechat/controller/api/Test.php index c2decface..a3091e203 100644 --- a/app/wechat/controller/api/Test.php +++ b/app/wechat/controller/api/Test.php @@ -76,8 +76,7 @@ class Test extends Controller public function scan_one_qrc() { $pay = WechatService::WePayOrder(); - $result = $pay->qrcParams('8888888'); - return $this->showQrc($result); + return $this->showQrc($pay->qrcParams('8888888')); } /** @@ -91,8 +90,7 @@ class Test extends Controller */ public function scan_two_qrc() { - $pay = WechatService::WePayOrder(); - $result = $pay->create([ + $result = WechatService::WePayOrder()->create([ 'body' => '测试商品', 'total_fee' => '1', 'trade_type' => 'NATIVE',