Commit 0c93d624 authored by hujun's avatar hujun

登录页跳转

parent fe8cd01b
......@@ -41,9 +41,16 @@ class Login extends Basic
$this->m_store = new AStore();
}
/**
* @return \think\response\View
*/
public function login()
{
$this->assign('mac_address',$this->params['mac_address'] ? $this->params['mac_address']: '');
$expire_time = Session::get("expire_time");
if ($expire_time > time()) {
$this->redirect('/admin.php/index/mainIndex');
}
return view("/login/login");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment