From dcfc8a6bf082c187ac4e540004f7c9ed9f7c3e62 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 23 Dec 2019 15:45:00 +0800 Subject: [PATCH] Update WechatService.php --- app/wechat/service/WechatService.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/wechat/service/WechatService.php b/app/wechat/service/WechatService.php index 4228c56b5..3c2b0205a 100644 --- a/app/wechat/service/WechatService.php +++ b/app/wechat/service/WechatService.php @@ -255,7 +255,7 @@ class WechatService extends Service /** * 获取微信网页JSSDK - * @param string $url JS签名地址 + * @param string $location JS签名地址 * @return array * @throws \WeChat\Exceptions\InvalidResponseException * @throws \WeChat\Exceptions\LocalCacheException @@ -264,13 +264,13 @@ class WechatService extends Service * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ - public function getWebJssdkSign($url = null) + public function getWebJssdkSign($location = null) { - $url = is_null($url) ? $this->app->request->url(true) : $url; + $location = is_null($location) ? $this->app->request->url(true) : $location; if ($this->getType() === 'api') { - return self::WeChatScript()->getJsSign($url); + return self::WeChatScript()->getJsSign($location); } else { - return self::ThinkServiceConfig()->jsSign($url); + return self::ThinkServiceConfig()->jsSign($location); } } } \ No newline at end of file