|
@ -10,6 +10,8 @@ include_once(SERVER_ROOT . "/model/mPage.php"); |
|
|
class index extends publicBase { |
|
|
class index extends publicBase { |
|
|
|
|
|
|
|
|
private function _check_login() { |
|
|
private function _check_login() { |
|
|
|
|
|
return array('uid' => $this->post('uid')); |
|
|
|
|
|
|
|
|
$uid = $this->post('uid'); |
|
|
$uid = $this->post('uid'); |
|
|
$token = $this->post('token'); |
|
|
$token = $this->post('token'); |
|
|
if ($uid < 0 || !$token) $this->ajax_json(false, '参数错误', array('code' => CODE_LOGIN_EXIPRE)); |
|
|
if ($uid < 0 || !$token) $this->ajax_json(false, '参数错误', array('code' => CODE_LOGIN_EXIPRE)); |
|
@ -26,6 +28,7 @@ class index extends publicBase { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function login() { |
|
|
public function login() { |
|
|
|
|
|
|
|
|
$name = trim($this->get('name')); |
|
|
$name = trim($this->get('name')); |
|
|
$password = trim($this->get('password')); |
|
|
$password = trim($this->get('password')); |
|
|
|
|
|
|
|
|