|
|
@ -11,7 +11,7 @@ class index extends publicBase { |
|
|
|
private function _check_login() { |
|
|
|
$uid = $this->post('uid'); |
|
|
|
$token = $this->post('token'); |
|
|
|
if (empty($uid) || empty($token)) $this->ajax_json(false, '参数错误', array('code' => CODE_LOGIN_PARAM_ERROR)); |
|
|
|
if (empty($uid) || empty($token)) $this->ajax_json(false, '参数错误', array('code' => CODE_LOGIN_EXIPRE)); |
|
|
|
|
|
|
|
$m_user = new mUser(); |
|
|
|
$is_login = $m_user->validateToken($uid, $token); |
|
|
|