退出帐号

This commit is contained in:
cxdbz committed 2018-10-16 21:34:00 +08:00
1 parent 84e4f5623f
commit 1b4abd1ee3
7 files changed
+9 -11

No files matched your search

-3
View File
@@ -12,9 +12,6 @@ class YanZheng extends Controller
{
public function handle($request, \Closure $next)
{
// 密码
dump(session('username'));
dump(cookie('username'));
// 验证用户在否登录
if(!session('?userid') && cookie('name') == null )
{
+1 -1
View File
@@ -77,7 +77,7 @@ class Index extends Base
public function exit()
{
// 清除cookie
cookie(null, 'chengji_');
cookie(null, 'think_');
// 清除session(当前作用域)
session(null);
+1 -1
View File
@@ -55,7 +55,7 @@
<ul class="dropDown-menu menu radius box-shadow">
<li><a href="javascript:;" onClick="myselfinfo()">个人信息</a></li>
<li><a href="#">切换账户</a></li>
<li><a href="login">退出</a></li>
<li><a href="exit">退出</a></li>
</ul>
</li>
<li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li>
Loaded 3 of 7 files, more files were not shown because too many files have changed in this diff. Show more