{"message":"Missing required parameter Access-Token","status":500,"data":[],"debug":{"name":"think\\Exception","file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/cores\/middleware\/CheckToken.php","line":61,"code":405,"message":"Missing required parameter Access-Token","trace":[{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/cores\/middleware\/CheckToken.php","line":76,"function":"checkToken","class":"cores\\middleware\\CheckToken","type":"->"},{"function":"handle","class":"cores\\middleware\\CheckToken","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/think-multi-app\/src\/MultiApp.php","line":52,"function":"then","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"think\\app\\MultiApp","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/cores\/middleware\/AppLog.php","line":39,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"cores\\middleware\\AppLog","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/cores\/middleware\/AllowCrossDomain.php","line":102,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"cores\\middleware\\AllowCrossDomain","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/middleware\/LoadLangPack.php","line":57,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"think\\middleware\\LoadLangPack","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/think-trace\/src\/TraceDebug.php","line":71,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"think\\trace\\TraceDebug","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":207,"function":"then","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":170,"function":"runWithRequest","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/hxhapi.fg.hpxhrhw.com\/public\/index.php","line":15,"function":"run","class":"think\\Http","type":"->"}],"source":{"first":52,"source":["    public function checkToken(\\think\\Request $request){\n","        $token = $request->header('Access-Token');\n","        \/\/ 调试模式下可通过param\n","        if (empty($token) && is_debug()) {\n","            $token = $request->param('Access-Token');\n","        }\n","        \/\/ 不存在token报错\n","        if (empty($token)) {\n","\/\/            $this->error = 'Missing required parameter Access-Token';\n","            throw new \\think\\Exception('Missing required parameter Access-Token', 405);\n","        }\n","        return $token;\n","    }\n","\n","    \/**\n","     * 前置中间件\n","     * @param \\think\\Request $request\n","     * @param \\Closure $next\n","     * @return mixed\n"]}}}