shell bypass 403
<?php
namespace app\admin\controller;
use think\Db;
use think\Controller;
// +----------------------------------------------------------------------
// | Copyright (c) 2020 http://myucms.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 梦雨 <50361804@qq.com>
// +----------------------------------------------------------------------
class Admin extends Controller
{
public function _initialize()
{
if (session('userid')!=1) {
$this->error('请登录', url('admin/login/index'));
}
}
}