From 8ea7017ff2a188b34e82bf4e3bb0e99c308a4d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 14 Apr 2017 17:41:52 +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=94=AF=E4=BB=98demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Wap.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/index/controller/Wap.php b/application/index/controller/Wap.php index 5c30e82a5..7f42da31e 100644 --- a/application/index/controller/Wap.php +++ b/application/index/controller/Wap.php @@ -54,11 +54,9 @@ class Wap extends BasicWechat { public function payjs() { $this->openid = $this->oAuth(false); - dump($this->openid); $this->assign('jsSign', load_wechat('script')->getJsSign($this->url)); switch ($this->request->get('action')) { case 'options': - $pay = &load_wechat('pay'); $order_no = session('pay-test-order-no'); if (empty($order_no)) { $order_no = DataService::createSequence(10, 'wechat-pay-test'); @@ -67,6 +65,7 @@ class Wap extends BasicWechat { if (PayService::isPay($order_no)) { return json(['code' => 2, 'order_no' => $order_no]); } + $pay = &load_wechat('pay'); $options = PayService::createWechatPayJsPicker($pay, $this->openid, $order_no, 1, 'JSAPI支付测试'); return json($options); case 'reset':