#0 [0]InvalidArgumentException in Container.php line 461

方法参数错误:id

  1. } elseif (1 == $type && !empty($vars)) {
  2. $args[] = array_shift($vars);
  3. } elseif (0 == $type && array_key_exists($name, $vars)) {
  4. $args[] = $vars[$name];
  5. } elseif (0 == $type && array_key_exists($lowerName, $vars)) {
  6. $args[] = $vars[$lowerName];
  7. } elseif ($param->isDefaultValueAvailable()) {
  8. $args[] = $param->getDefaultValue();
  9. } else {
  10. throw new InvalidArgumentException('method param miss:' . $name);
  11. }
  12. }
  13. return $args;
  14. }
  15. /**
  16. * 创建工厂对象实例
  17. * @param string $name 工厂类名

Call Stack

  1. in Container.php line 461
  2. at Container->bindParams() in Container.php line 342
  3. at Container->invokeReflectMethod() in Controller.php line 110
  4. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  5. at Pipeline->think\{closure}() in Pipeline.php line 66
  6. at Pipeline->then() in Controller.php line 113
  7. at Controller->exec() in Dispatch.php line 80
  8. at Dispatch->run() in Route.php line 793
  9. at Route->think\{closure}() in Pipeline.php line 59
  10. at Pipeline->think\{closure}() in RbacAccess.php line 87
  11. at RbacAccess->handle()
  12. at call_user_func() in Middleware.php line 142
  13. at Middleware->think\{closure}() in Pipeline.php line 85
  14. at Pipeline->think\{closure}() in Pipeline.php line 66
  15. at Pipeline->then() in Route.php line 794
  16. at Route->dispatch() in Http.php line 216
  17. at Http->dispatchToRoute() in Http.php line 206
  18. at Http->think\{closure}() in Pipeline.php line 59
  19. at Pipeline->think\{closure}() in MultAccess.php line 75
  20. at MultAccess->think\admin\support\middleware\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in Pipeline.php line 66
  22. at Pipeline->then() in MultAccess.php line 76
  23. at MultAccess->handle()
  24. at call_user_func() in Middleware.php line 142
  25. at Middleware->think\{closure}() in Pipeline.php line 85
  26. at Pipeline->think\{closure}() in LoadLangPack.php line 57
  27. at LoadLangPack->handle()
  28. at call_user_func() in Middleware.php line 142
  29. at Middleware->think\{closure}() in Pipeline.php line 85
  30. at Pipeline->think\{closure}() in JwtSession.php line 117
  31. at JwtSession->handle()
  32. at call_user_func() in Middleware.php line 142
  33. at Middleware->think\{closure}() in Pipeline.php line 85
  34. at Pipeline->think\{closure}() in Pipeline.php line 66
  35. at Pipeline->then() in Http.php line 207
  36. at Http->runWithRequest() in Http.php line 170
  37. at Http->run() in RuntimeService.php line 209
  38. at RuntimeService::doWebsiteInit() in index.php line 23

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.tiantai.com.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO //news/info/19.html
REDIRECT_STATUS 200
SERVER_NAME tiantai.com.cn
SERVER_PORT 443
SERVER_ADDR 172.21.126.135
REMOTE_PORT 38438
REMOTE_ADDR 52.91.67.23
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/new_tiantai/public
DOCUMENT_URI /index.php//news/info/19.html
REQUEST_URI /news/info/19.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/new_tiantai/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php//news/info/19.html
REQUEST_TIME_FLOAT 1711645466.8842
REQUEST_TIME 1711645466