From a63b2993ca3cb65205959f0ba5df234500dab69e Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 19 Mar 2018 15:43:42 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E5=A2=9E=E5=8A=A0=E5=8F=88?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=BD=91=E9=A1=B5=E6=8E=88=E6=9D=83=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Wechat.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/index/controller/Wechat.php b/application/index/controller/Wechat.php index e6bbd5b00..24d42fe81 100644 --- a/application/index/controller/Wechat.php +++ b/application/index/controller/Wechat.php @@ -41,11 +41,11 @@ class Wechat extends Controller * @return mixed * @throws \WeChat\Exceptions\InvalidResponseException * @throws \WeChat\Exceptions\LocalCacheException + * @throws \think\Exception + * @throws \think\exception\PDOException */ public function jssdk() { - $wechat = WechatService::script(); - $options = $wechat->getJsSign($this->request->url(true)); - return $this->fetch('wechat@api/tools/jssdk', ['options' => $options]); + return $this->fetch('wechat@api/tools/jssdk', ['options' => WechatService::webJsSDK()]); } } \ No newline at end of file