20 lines
370 B
PHP
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');
|
|
}
|
|
|
|
} |