header('token'); // 基类 if(empty($get_token)) { throw new MyBusinessException('参数错误', 500); } if($get_token != self::$token) { throw new MyBusinessException('参数错误', 500); } } }