mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Wechat.php
This commit is contained in:
parent
bc57eeb429
commit
5448a101ae
@ -68,7 +68,7 @@ class Wechat extends Controller
|
|||||||
{
|
{
|
||||||
$wechat = WechatService::instance();
|
$wechat = WechatService::instance();
|
||||||
$this->mode = $this->request->get('mode', 1);
|
$this->mode = $this->request->get('mode', 1);
|
||||||
$this->source = $this->request->server('http_referer', $this->request->get('source'));
|
$this->source = $this->request->server('http_referer', $this->request->get('source', ''));
|
||||||
$user = $wechat->getWebOauthInfo($this->source ?: $this->request->url(true), $this->mode, false);
|
$user = $wechat->getWebOauthInfo($this->source ?: $this->request->url(true), $this->mode, false);
|
||||||
if (empty($user['openid'])) {
|
if (empty($user['openid'])) {
|
||||||
$content = 'alert("Wechat WebOauth failed.")';
|
$content = 'alert("Wechat WebOauth failed.")';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user