[0] InvalidArgumentException in App.php line 294

方法参数错误:cid

  1. $args[] = method_exists($className, 'instance') ? $className::instance() : new $className();
  2. }
  3. } elseif (1 == $type && !empty($vars)) {
  4. $args[] = array_shift($vars);
  5. } elseif (0 == $type && isset($vars[$name])) {
  6. $args[] = $vars[$name];
  7. } elseif ($param->isDefaultValueAvailable()) {
  8. $args[] = $param->getDefaultValue();
  9. } else {
  10. throw new \InvalidArgumentException('method param miss:' . $name);
  11. }
  12. }
  13. // 全局过滤
  14. array_walk_recursive($args, [Request::instance(), 'filterExp']);
  15. }
  16. return $args;
  17. }
  18. /**

Call Stack

  1. in App.php line 294
  2. at App::bindParams(object(ReflectionMethod), []) in App.php line 226
  3. at App::invokeMethod([object(Listing), 'index']) in App.php line 383
  4. at App::module(['index', 'listing', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 137
  5. at App::run() in start.php line 18
  6. at require('/alidata/www/cysz/th...') in index.php line 18

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
apache
HOME
/usr/share/httpd
FCGI_ROLE
RESPONDER
PATH_INFO
//index/listing/index/cid/
PATH_TRANSLATED
/alidata/www/cysz
SCRIPT_FILENAME
/alidata/www/cysz/index.php
QUERY_STRING
s=//index/listing/index/cid/
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/listing/index/cid/
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/alidata/www/cysz
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.12.2
REMOTE_ADDR
154.219.155.42
REMOTE_PORT
20001
SERVER_ADDR
172.16.152.4
SERVER_PORT
80
SERVER_NAME
www.sdcysz.com
REDIRECT_STATUS
200
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.sdcysz.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1561400445.1152
REQUEST_TIME
1561400445
Environment Variablesempty
ThinkPHP Constants
APP_PATH
/alidata/www/cysz/application/
UPLOADSIMG
/alidata/www/cysz/public
THINK_VERSION
5.0.1
THINK_START_TIME
1561400445.1157
THINK_START_MEM
260376
EXT
.php
DS
/
THINK_PATH
/alidata/www/cysz/thinkphp/
LIB_PATH
/alidata/www/cysz/thinkphp/library/
CORE_PATH
/alidata/www/cysz/thinkphp/library/think/
TRAIT_PATH
/alidata/www/cysz/thinkphp/library/traits/
ROOT_PATH
/alidata/www/cysz/
EXTEND_PATH
/alidata/www/cysz/extend/
VENDOR_PATH
/alidata/www/cysz/vendor/
RUNTIME_PATH
/alidata/www/cysz/runtime/
LOG_PATH
/alidata/www/cysz/runtime/log/
CACHE_PATH
/alidata/www/cysz/runtime/cache/
TEMP_PATH
/alidata/www/cysz/runtime/temp/
CONF_PATH
/alidata/www/cysz/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
__ROOT__