From ccdacc7597d0e61ac398119c2dbc2f1254dec8a6 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Wed, 4 Sep 2024 18:45:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- control/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/control/index.php b/control/index.php index 9df35eb..2f47037 100644 --- a/control/index.php +++ b/control/index.php @@ -179,6 +179,8 @@ class index extends publicBase { $m_user = new mUser(); $user = $m_user->getUserInfo($code); + if (!$user) $this->ajax_json(false, $m_user->getError()); + $token = $m_user->getToken($user['uid']); $this->ajax_json(true, '登录成功', array('uid' => $user['uid'], 'identifier' => $user['identifier'], 'token' => $token));