[2] ErrorException in Jump.php line 137

Missing argument 1 for think\Controller::redirect(), called in C:\wwwroot\55_X0Mw9R\app\home\controller\Cases.php on line 168 and defined

  1. /**
  2. * URL重定向
  3. * @access protected
  4. * @param string $url 跳转的URL表达式
  5. * @param array|integer $params 其它URL参数
  6. * @param integer $code http code
  7. * @param array $with 隐式传参
  8. * @return void
  9. */
  10. protected function redirect($url, $params = [], $code = 302, $with = [])
  11. {
  12. $response = new Redirect($url);
  13. if (is_integer($params)) {
  14. $code = $params;
  15. $params = [];
  16. }
  17. $response->code($code)->params($params)->with($with);
  18. throw new HttpResponseException($response);
  19. }

Call Stack

  1. in Jump.php line 137
  2. at Error::appError(2, 'Missing argument 1 f...', 'C:\wwwroot\55_X0Mw9R...', 137, []) in Jump.php line 137
  3. at Controller->redirect() in Cases.php line 168
  4. at Cases->homecase()
  5. at ReflectionMethod->invokeArgs(object(Cases), []) in App.php line 195
  6. at App::invokeMethod([object(Cases), 'homecase'], []) in App.php line 414
  7. at App::module(['home', 'Cases', 'homecase'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 294
  8. at App::exec(['type' => 'module', 'module' => ['home', 'Cases', 'homecase'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 122
  9. at App::run() in start.php line 18
  10. at require('C:\wwwroot\55_X0Mw9R...') in index.php line 29

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

PATH
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;
SYSTEMROOT
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
PHPRC
C:/Huweishen/php/php56
_FCGI_SHUTDOWN_EVENT_
2976
HTTP_CONNECTION
close
PATH_TRANSLATED
redirect:\index.php
PATH_INFO
/homecase.html
SCRIPT_NAME
/index.php
REQUEST_URI
/index.php/homecase.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REMOTE_PORT
20001
SCRIPT_FILENAME
C:/wwwroot/55_X0Mw9R/index.php
SERVER_ADMIN
httpd.apache.org
CONTEXT_DOCUMENT_ROOT
C:/wwwroot/55_X0Mw9R
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
C:/wwwroot/55_X0Mw9R
REMOTE_ADDR
154.210.92.176
SERVER_PORT
80
SERVER_ADDR
172.16.99.142
SERVER_NAME
www.589zs.com
SERVER_SOFTWARE
Apache/2.4.33 (Win32) OpenSSL/1.0.2o mod_fcgid/2.3.9 mod_jk/1.2.40
SERVER_SIGNATURE
SystemRoot
C:\Windows
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.589zs.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/homecase.html
REQUEST_TIME_FLOAT
1603935762.2306
REQUEST_TIME
1603935762
Environment Variables
empty

ThinkPHP Constants

NOW_URL
http://www.589zs.com/index.php/homecase.html
APP_PATH
C:\wwwroot\55_X0Mw9R/app/
RUNTIME_PATH
C:\wwwroot\55_X0Mw9R/data/runtime/
THINK_VERSION
5.0.9
THINK_START_TIME
1603935762.2306
THINK_START_MEM
143168
EXT
.php
DS
\
THINK_PATH
C:\wwwroot\55_X0Mw9R\thinkphp\
LIB_PATH
C:\wwwroot\55_X0Mw9R\thinkphp\library\
CORE_PATH
C:\wwwroot\55_X0Mw9R\thinkphp\library\think\
TRAIT_PATH
C:\wwwroot\55_X0Mw9R\thinkphp\library\traits\
ROOT_PATH
C:\wwwroot\55_X0Mw9R\
EXTEND_PATH
C:\wwwroot\55_X0Mw9R\extend\
VENDOR_PATH
C:\wwwroot\55_X0Mw9R\vendor\
LOG_PATH
C:\wwwroot\55_X0Mw9R/data/runtime/log\
CACHE_PATH
C:\wwwroot\55_X0Mw9R/data/runtime/cache\
TEMP_PATH
C:\wwwroot\55_X0Mw9R/data/runtime/temp\
CONF_PATH
C:\wwwroot\55_X0Mw9R/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
QINIU_FUNCTIONS_VERSION
7.1.3
ADDON_PATH
C:\wwwroot\55_X0Mw9R\addons\
__ROOT__
MODULE_NAME
home
CONTROLLER_NAME
Cases
ACTION_NAME
homecase