[0] ReflectionException in Module.php line 109

Method app\index\controller\Shop::product() does not exist

  1. $this->app['middleware']->controller(function (Request $request, $next) use ($instance) {
  2. // 获取当前操作名
  3. $action = $this->actionName . $this->rule->getConfig('action_suffix');
  4. if (is_callable([$instance, $action])) {
  5. // 执行操作方法
  6. $call = [$instance, $action];
  7. // 严格获取当前操作方法名
  8. $reflect = new ReflectionMethod($instance, $action);
  9. $methodName = $reflect->getName();
  10. $suffix = $this->rule->getConfig('action_suffix');
  11. $actionName = $suffix ? substr($methodName, 0, -strlen($suffix)) : $methodName;
  12. $this->request->setAction($actionName);
  13. // 自动获取请求变量
  14. $vars = $this->rule->getConfig('url_param_type')
  15. ? $this->request->route()
  16. : $this->request->param();

Call Stack

  1. in Module.php line 109
  2. at ReflectionMethod->__construct(object(Shop), 'product') in Module.php line 109
  3. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  4. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  5. at Middleware->think\{closure}(object(Request))
  6. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  7. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  8. at Module->exec() in Dispatch.php line 168
  9. at Dispatch->run() in App.php line 432
  10. at App->think\{closure}(object(Request), object(Closure), null)
  11. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  12. at Middleware->think\{closure}(object(Request)) in sys.php line 116
  13. at {closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request)) in common.php line 220
  16. at {closure}(object(Request), object(Closure), null)
  17. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  18. at Middleware->think\{closure}(object(Request))
  19. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  20. at Middleware->dispatch(object(Request)) in App.php line 435
  21. at App->run() in index.php line 22

Environment Variables

GET Data
id 872
cate 90
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
TEMP /tmp
TMPDIR /tmp
TMP /tmp
PATH /usr/local/bin:/usr/bin:/bin
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.cnfzflw.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.cnfzflw.com
SERVER_PORT 443
SERVER_ADDR 172.26.195.76
REMOTE_PORT 58332
REMOTE_ADDR 54.163.200.109
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /data/wwwroot/cnfzflw/public
DOCUMENT_URI /index.php
REQUEST_URI /index/shop/product.html?id=872&cate=90
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/index/shop/product.html&id=872&cate=90
SCRIPT_FILENAME /data/wwwroot/cnfzflw/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711622084.9442
REQUEST_TIME 1711622084
Environment Variablesempty
ThinkPHP Constants
QINIU_FUNCTIONS_VERSION 7.2.7