/** * 登陆 * @return string */ function action_login_local() { if (!Utils::is_local_dev()) { _throw("no auth"); } $username = Utils::I("username"); $password = Utils::I("password"); Model_Auth::do_login($username, $password); return "登陆成功"; }
/** * 登陆 * @return string */ function action_login_local() { if (!Utils::is_local_dev()) { _throw("no auth"); } $username = Utils::I("username"); $password = Utils::I("password"); Model_Auth::do_login($username, $password); return "登陆成功"; }