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