mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]增加又模式网页授权兼容
This commit is contained in:
parent
dcda1c9bc8
commit
e1e39b0023
@ -36,4 +36,16 @@ class Wechat extends Controller
|
|||||||
return $this->fetch('wechat@api/tools/oauth', ['fans' => $fans]);
|
return $this->fetch('wechat@api/tools/oauth', ['fans' => $fans]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 网页JSSDK测试
|
||||||
|
* @return mixed
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function jssdk()
|
||||||
|
{
|
||||||
|
$wechat = WechatService::script();
|
||||||
|
$options = $wechat->getJsSign($this->request->url(true));
|
||||||
|
return $this->fetch('wechat@api/tools/jssdk', ['options' => $options]);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user