前置操作列表怎么传参数:
protected $beforeActionList =['method'=>['opt'=>1]];
修改\thinkphp\Controller.php 下的beforeAction()方法:
//自定义修改添加$opt参数
$opt=[];
if(isset($options['opt'])){
$opt=$options['opt'];
unset($options['opt']);
call_user_func([$this, $method],$opt);
}else{
call_user_func([$this, $method]);
}