From f50194c83b1e6c294bf4c9e0a98230719adfe961 Mon Sep 17 00:00:00 2001 From: linda Date: Thu, 15 Oct 2026 14:41:15 +0800 Subject: [PATCH] =?UTF-8?q?chore(debug):=20=E4=B8=B4=E6=97=B6=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E8=AF=8A=E6=96=AD=E6=8E=A2=E9=92=88=20/api/probe/inde?= =?UTF-8?q?x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Probe.php | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 application/api/controller/Probe.php diff --git a/application/api/controller/Probe.php b/application/api/controller/Probe.php new file mode 100644 index 0000000..8326d2e --- /dev/null +++ b/application/api/controller/Probe.php @@ -0,0 +1,48 @@ + $this->request->path(), + 'request_pathinfo' => $this->request->pathinfo(), + 'request_module' => $this->request->module(), + 'request_controller' => $this->request->controller(), + 'request_action' => $this->request->action(), + 'server_PATH_INFO' => isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : null, + 'get_s' => isset($_GET['s']) ? $_GET['s'] : null, + 'url_route_on' => Config::get('url_route_on'), + 'route_config_file' => Config::get('route_config_file'), + 'pathinfo_depr' => Config::get('pathinfo_depr'), + 'CONF_PATH' => CONF_PATH, + 'route_file_exists' => is_file(CONF_PATH . 'route.php'), + 'runtime_route_file' => is_file(RUNTIME_PATH . 'route.php'), + 'rule_buckets' => array_keys($rules), + 'get_bucket_count' => count($getBucket), + 'star_bucket_count' => count($starBucket), + 'get_sample' => array_slice(array_keys($getBucket), 0, 8), + 'has_static_rule' => isset($getBucket['api/v1/home/banners']), + 'star_has_static' => isset($starBucket['api/v1/home/banners']), + ]; + + echo json_encode($out, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT); + exit; + } +}