check('show_button',1)){// 第一个参数是规则名称,第二个参数是用户UID dump('验证通过'); }else{ dump('验证不通过'); } return $next($request); } }