[0] HttpException in Module.php line 2

模块不存在:cd5mly

  1. <?php
  2. namespace think\route\dispatch; use ReflectionMethod; use think\exception\ClassNotFoundException; use think\exception\HttpException; use think\Loader; use think\Request; use think\route\Dispatch; class Module extends Dispatch { protected $controller; protected $actionName; public function init() { parent::init(); $result = $this->dispatch; if (is_string($result)) { $result = explode('/', $result); } if ($this->rule->getConfig('app_multi_module')) { $module = strip_tags(strtolower($result[0] ?: $this->rule->getConfig('default_module'))); $bind = $this->rule->getRouter()->getBind(); $available = false; if ($bind && preg_match('/^[a-z]/is', $bind)) { list($bindModule) = explode('/', $bind); if (empty($result[0])) { $module = $bindModule; } $available = true; } elseif (!in_array($module, $this->rule->getConfig('deny_module_list')) && is_dir($this->app->getAppPath() . $module)) { $available = true; } elseif ($this->rule->getConfig('empty_module')) { $module = $this->rule->getConfig('empty_module'); $available = true; } if ($module && $available) { $this->request->setModule($module); $this->app->init($module); } else { throw new HttpException(404, 'module not exists:' . $module); } } $convert = is_bool($this->convert) ? $this->convert : $this->rule->getConfig('url_convert'); $controller = strip_tags($result[1] ?: $this->rule->getConfig('default_controller')); $this->controller = $convert ? strtolower($controller) : $controller; $this->actionName = strip_tags($result[2] ?: $this->rule->getConfig('default_action')); $this->request ->setController(Loader::parseName($this->controller, 1)) ->setAction($this->actionName); return $this; } public function exec() { $this->app['hook']->listen('module_init'); try { $instance = $this->app->controller($this->controller, $this->rule->getConfig('url_controller_layer'), $this->rule->getConfig('controller_suffix'), $this->rule->getConfig('empty_controller')); } catch (ClassNotFoundException $e) { throw new HttpException(404, 'controller not exists:' . $e->getClass()); } $this->app['middleware']->controller(function (Request $request, $next) use ($instance) { $action = $this->actionName . $this->rule->getConfig('action_suffix'); if (is_callable([$instance, $action])) { $call = [$instance, $action]; $reflect = new ReflectionMethod($instance, $action); $methodName = $reflect->getName(); $suffix = $this->rule->getConfig('action_suffix'); $actionName = $suffix ? substr($methodName, 0, -strlen($suffix)) : $methodName; $this->request->setAction($actionName); $vars = $this->rule->getConfig('url_param_type') ? $this->request->route() : $this->request->param(); $vars = array_merge($vars, $this->param); } elseif (is_callable([$instance, '_empty'])) { $call = [$instance, '_empty']; $vars = [$this->actionName]; $reflect = new ReflectionMethod($instance, '_empty'); } else { throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()'); } $this->app['hook']->listen('action_begin', $call); $data = $this->app->invokeReflectMethod($instance, $reflect, $vars); return $this->autoResponse($data); }); return $this->app['middleware']->dispatch($this->request, 'controller'); } }

Call Stack

  1. in Module.php line 2
  2. at Module->init() in Url.php line 14
  3. at Url->init() in App.php line 2
  4. at App->run() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
screat 1
USER www
HOME /home/www
HTTP_HOST qdt168.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME qdt168.cn
SERVER_PORT 80
SERVER_ADDR 172.31.45.165
REMOTE_PORT 55512
REMOTE_ADDR 34.204.52.16
SERVER_SOFTWARE nginx/1.20.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/lipin/lipin-original/public
DOCUMENT_URI /index.php
REQUEST_URI /cd5mly/s6z/glf/6qs/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/cd5mly/s6z/glf/6qs/
SCRIPT_FILENAME /www/wwwroot/lipin/lipin-original/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711641360.948
REQUEST_TIME 1711641360
Environment Variablesempty
ThinkPHP Constants
WEB_URL
APP_DEBUG false
APP_PATH /www/wwwroot/lipin/lipin-original/application/
SYSTEM_PATH /www/wwwroot/lipin/lipin-original
ROOT_PATH /www/wwwroot/lipin/lipin-original/public/
PROJECT_ROOT_PATH /www/wwwroot/lipin/lipin-original/../
DS /
QINIU_FUNCTIONS_VERSION 7.3.0
ADMIN_PATH admin
0.050613s