{"message":"method not exists:app\\api\\controller\\Index->index()","status":500,"data":[],"debug":{"name":"think\\exception\\HttpException","file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/route\/dispatch\/Controller.php","line":107,"code":0,"message":"方法不存在:app\\api\\controller\\Index->index()","trace":[{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\route\\dispatch\\{closure}","class":"think\\route\\dispatch\\Controller","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/route\/dispatch\/Controller.php","line":113,"function":"then","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/route\/Dispatch.php","line":90,"function":"exec","class":"think\\route\\dispatch\\Controller","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Route.php","line":785,"function":"run","class":"think\\route\\Dispatch","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\{closure}","class":"think\\Route","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Route.php","line":786,"function":"then","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":216,"function":"dispatch","class":"think\\Route","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":206,"function":"dispatchToRoute","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\{closure}","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/think-multi-app\/src\/MultiApp.php","line":71,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\app\\{closure}","class":"think\\app\\MultiApp","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/think-multi-app\/src\/MultiApp.php","line":72,"function":"then","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"think\\app\\MultiApp","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/cores\/middleware\/AppLog.php","line":43,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"cores\\middleware\\AppLog","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/cores\/middleware\/AllowCrossDomain.php","line":98,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"cores\\middleware\\AllowCrossDomain","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":207,"function":"then","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":170,"function":"runWithRequest","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/dingcan.kenleader.com\/public\/index.php","line":15,"function":"run","class":"think\\Http","type":"->"}],"source":{"first":98,"source":["\n","                        $this->request->setAction($actionName);\n","                    } catch (ReflectionException $e) {\n","                        $reflect = new ReflectionMethod($instance, '__call');\n","                        $vars    = [$action, $vars];\n","                        $this->request->setAction($action);\n","                    }\n","                } else {\n","                    \/\/ 操作不存在\n","                    throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');\n","                }\n","\n","                $data = $this->app->invokeReflectMethod($instance, $reflect, $vars);\n","\n","                return $this->autoResponse($data);\n","            });\n","    }\n","\n","    protected function parseActions($actions)\n"]}}}