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

方法参数错误:id

  1. } elseif (1 == $type && !empty($vars)) {
  2. $args[] = array_shift($vars);
  3. } elseif (0 == $type && isset($vars[$name])) {
  4. $args[] = $vars[$name];
  5. } elseif (0 == $type && isset($vars[$lowerName])) {
  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 455
  2. at Container->bindParams(object(ReflectionMethod), ['cate' => '23', 'amp;id' => '10']) in Container.php line 340
  3. at Container->invokeReflectMethod(object(Error), object(ReflectionMethod), ['cate' => '23', 'amp;id' => '10']) in Controller.php line 110
  4. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  5. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  6. at Pipeline->then(object(Closure)) in Controller.php line 113
  7. at Controller->exec() in Dispatch.php line 96
  8. at Dispatch->run() in Route.php line 747
  9. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  10. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  11. at Pipeline->then(object(Closure)) in Route.php line 748
  12. at Route->dispatch(object(Request), object(Closure)) in Http.php line 213
  13. at Http->dispatchToRoute(object(Request)) in Http.php line 203
  14. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  15. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 71
  16. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  17. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  18. at Pipeline->then(object(Closure)) in MultiApp.php line 72
  19. at MultiApp->handle(object(Request), object(Closure))
  20. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  21. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  22. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  23. at SessionInit->handle(object(Request), object(Closure))
  24. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  25. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  26. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  27. at Pipeline->then(object(Closure)) in Http.php line 204
  28. at Http->runWithRequest(object(Request)) in Http.php line 162
  29. at Http->run() in index.php line 25

Environment Variables

GET Data
cate
23
amp;id
10
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
BT_PANEL
C:\BtSoft\panel
BT_PYTHON
C:\Program Files\python
BT_SETUP
C:\BtSoft
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
winple
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\python;C:\Program Files\python\Scripts;C:\BtSoft\panel\script;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Git\cmd;C:\BtSoft\php\56;C:\Program Files\TortoiseGit\bin;C:\Program Files\VisualSVN Server\bin;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 7, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5507
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\VisualSVN Server\PowerShellModules
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
UNRAR_LIB_PATH
C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN
WORKGROUP
USERNAME
winple$
USERPROFILE
C:\Windows\system32\config\systemprofile
VISUALSVN_SERVER
C:\Program Files\VisualSVN Server\
windir
C:\Windows
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.xn--7gqv32dhl0a.cn
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_STATUS
200
SERVER_NAME
qyd.winple.net
SERVER_PORT
80
SERVER_ADDR
172.27.202.72
REMOTE_PORT
20004
REMOTE_ADDR
168.206.70.108
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
C:/wwwroot/qyd.winple.net/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/Picture/info.html?cate=23&id=10
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/Picture/info.html&cate=23&id=10
PATH_INFO
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
C:/wwwroot/qyd.winple.net/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1635227330.6098
REQUEST_TIME
1635227330
Environment Variables
APP_DEBUG
1
APP_DEFAULT_TIMEZONE
Asia/Shanghai
DATABASE_TYPE
mysql
DATABASE_HOSTNAME
127.0.0.1
DATABASE_DATABASE
qyd_winple_net
DATABASE_USERNAME
qyd_winple_net
DATABASE_PASSWORD
KhfxCYxGZGY8bBcE
DATABASE_HOSTPORT
3306
DATABASE_CHARSET
utf8mb4
DATABASE_DEBUG
DATABASE_PREFIX
tp_
LANG_DEFAULT_LANG
zh-cn
ThinkPHP Constants
PHP_FLOAT_DIG
15
PHP_FLOAT_EPSILON
2.2204460492503E-16
PHP_FLOAT_MIN
2.2250738585072E-308
PHP_FLOAT_MAX
1.7976931348623E+308
PHP_OS_FAMILY
Windows