cxhxy/app/applet/controller/Passport.php
2023-11-21 15:14:59 +08:00

20 lines
370 B
PHP

<?php
namespace app\applet\controller;
use think\facade\View;
use think\facade\Session;
/**
* 登录小程序管理中心
*/
class Passport extends Controller
{
/**
* 退出登录
*/
public function logout()
{
Session::delete('hema_applet');// 清空登录状态
return redirect('/user/applet/index');
}
}