Commit 19bc8794 authored by hujun's avatar hujun

c端后台退出

parent b2d6eea0
......@@ -59,4 +59,15 @@ class Login extends Basic
}
}
/**
* 退出
*
* @return \think\response\View
*/
public function logout()
{
Session::clear();
return view("/login/login", [ "msg" => "退出成功" ]);
}
}
\ No newline at end of file
......@@ -80,7 +80,7 @@ Route::group('index', [
//login
'login' => ['index/login/login',['method'=>'get']],
'loginVerify' => ['index/login/loginVerify',['method'=>'post|get']],
'logout' =>['index/login/logout',['method'=>'get']], //退出
//watchshop 预约看铺
'watch_shop' => ['index/WatchShop/index',['method'=>'get']],
'get_watch' => ['index/WatchShop/getList',['method'=>'get']],
......
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