20,396
社区成员
发帖
与我相关
我的任务
分享namespace app\Index\controller;
use think\Controller;
class Base extends Controller
{
//登录验证
public function initialize()
{
if(!session('?user.id')) {
$this->redirect('index/login');
}
}
}