修复引用cookie
This commit is contained in:
parent
f17af17419
commit
e911a7798b
@ -15,6 +15,7 @@ use think\facade\View;
|
|||||||
use think\facade\Request;
|
use think\facade\Request;
|
||||||
use think\facade\Db;
|
use think\facade\Db;
|
||||||
use think\facade\Session;
|
use think\facade\Session;
|
||||||
|
use think\facade\Cookie;
|
||||||
use think\exception\ValidateException;
|
use think\exception\ValidateException;
|
||||||
use app\common\model\User as UserModel;
|
use app\common\model\User as UserModel;
|
||||||
use taoler\com\Files;
|
use taoler\com\Files;
|
||||||
@ -225,10 +226,10 @@ class Admin extends AdminController
|
|||||||
//退出登陆
|
//退出登陆
|
||||||
public function logout()
|
public function logout()
|
||||||
{
|
{
|
||||||
|
//清空缓存
|
||||||
Cookie::delete('adminAuth');
|
Cookie::delete('adminAuth');
|
||||||
Session::clear();
|
Session::clear();
|
||||||
$res = ['code'=>0,'msg'=>'退出成功' ];
|
|
||||||
|
|
||||||
return json($res);
|
return json(['code'=>0,'msg'=>'退出成功' ]);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user