Browse Source

登录优化

pull/1/head
pengda 9 months ago
parent
commit
928e8730aa
  1. 2
      control/index.php

2
control/index.php

@ -193,7 +193,7 @@ class index extends publicBase {
$this->ajax_json(true, '登录成功', array('uid' => $user['uid'], 'identifier' => $user['identifier'], 'token' => $token)); $this->ajax_json(true, '登录成功', array('uid' => $user['uid'], 'identifier' => $user['identifier'], 'token' => $token));
} }
public function get_user() { public function ajax_get_user() {
$uid = $this->post('uid'); $uid = $this->post('uid');
$token = $this->post('token'); $token = $this->post('token');
if (empty($uid) || empty($token)) $this->ajax_json(false, '未登录或登录已经失效', array('code' => CODE_LOGIN_EXIPRE)); if (empty($uid) || empty($token)) $this->ajax_json(false, '未登录或登录已经失效', array('code' => CODE_LOGIN_EXIPRE));

Loading…
Cancel
Save