• #0 [0]HttpException in Url.php line 62

    1. $path = $this->rule->parseUrlPath($url);
    2. if (empty($path)) {
    3. return [null, null];
    4. }
    5. // 解析控制器
    6. $controller = !empty($path) ? array_shift($path) : null;
    7. if ($controller && !preg_match('/^[A-Za-z0-9][\w|\.]*$/', $controller)) {
    8. throw new HttpException(404, 'controller not exists:' . $controller);
    9. }
    10. // 解析操作
    11. $action = !empty($path) ? array_shift($path) : null;
    12. $var = [];
    13. // 解析额外参数
    14. if ($path) {
    15. preg_replace_callback('/(\w+)\|([^\|]+)/', function ($match) use (&$var) {

    Call Stack

    1. in Url.php line 62
    2. at Url->parseUrl('') in Url.php line 31
    3. at Url->__construct(object(Request), object(Domain), '') in Route.php line 812
    4. at Route->url('') in Route.php line 777
    5. at Route->check() in Route.php line 737
    6. at Route->dispatch(object(Request), object(Closure)) in Http.php line 213
    7. at Http->dispatchToRoute(object(Request)) in Http.php line 203
    8. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
    9. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 65
    10. at MultiApp->handle(object(Request), object(Closure))
    11. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
    12. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
    13. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
    14. at SessionInit->handle(object(Request), object(Closure))
    15. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
    16. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
    17. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
    18. at Pipeline->then(object(Closure)) in Http.php line 204
    19. at Http->runWithRequest(object(Request)) in Http.php line 162
    20. at Http->run() in index.php line 25

    Environment Variables

    GET Dataempty
    POST Dataempty
    Filesempty
    Cookiesempty
    Sessionempty
    Server/Request Data
    REDIRECT_REDIRECT_REDIRECT_UNIQUE_ID ZqZBN-OgC-4gOq9X5SIwcgAAAAQ
    REDIRECT_REDIRECT_REDIRECT_PHPRC /home/gdyueshifgrdjy6uceasphzi/others
    REDIRECT_REDIRECT_REDIRECT_STATUS 200
    REDIRECT_REDIRECT_UNIQUE_ID ZqZBN-OgC-4gOq9X5SIwcgAAAAQ
    REDIRECT_REDIRECT_PATH_INFO
    REDIRECT_REDIRECT_PHPRC /home/gdyueshifgrdjy6uceasphzi/others
    REDIRECT_REDIRECT_STATUS 200
    REDIRECT_UNIQUE_ID ZqZBN-OgC-4gOq9X5SIwcgAAAAQ
    REDIRECT_PHPRC /home/gdyueshifgrdjy6uceasphzi/others
    REDIRECT_HANDLER php-cgi
    REDIRECT_STATUS 200
    UNIQUE_ID ZqZBN-OgC-4gOq9X5SIwcgAAAAQ
    PHPRC /home/gdyueshifgrdjy6uceasphzi/others
    HTTP_X_FORWARDED_FOR 45.41.88.246
    HTTP_X_REAL_IP 45.41.88.246
    HTTP_HOST wgzaliang.com
    HTTP_CONNECTION close
    HTTP_REFERER https://www.baidu.com/search/spider.htm
    HTTP_X_APPLE_TZ 0
    HTTP_X_APPLE_STORE_FRONT 143444,12
    HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    HTTP_ACCEPT_ENCODING gzip, deflate
    HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
    HTTP_CACHE_CONTROL no-cache
    CONTENT_TYPE application/x-www-form-urlencoded; charset=utf-8
    HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    HTTP_X_MICROSOFTAJAX Delta=true
    PATH /sbin:/usr/sbin:/bin:/usr/bin
    SERVER_SIGNATURE <address>Apache Server at wgzaliang.com Port 80</address>
    SERVER_SOFTWARE Apache
    SERVER_NAME wgzaliang.com
    SERVER_ADDR 127.0.0.1
    SERVER_PORT 80
    REMOTE_ADDR 45.41.88.246
    DOCUMENT_ROOT /home/gdyueshifgrdjy6uceasphzi/wwwroot
    REQUEST_SCHEME http
    CONTEXT_PREFIX /php-run-as-cgi
    CONTEXT_DOCUMENT_ROOT /usr/php7.2/bin
    SERVER_ADMIN webmaster@gdyueshi
    SCRIPT_FILENAME /home/gdyueshifgrdjy6uceasphzi/wwwroot/public/index.php
    REMOTE_PORT 45582
    REDIRECT_URL
    GATEWAY_INTERFACE CGI/1.1
    SERVER_PROTOCOL HTTP/1.1
    REQUEST_METHOD GET
    QUERY_STRING
    REQUEST_URI /%E4%B9%9D%E5%8F%B6%E9%9D%92%E7%A7%8D%E6%A4%8D%E5%9F%BA%E5%9C%B0
    SCRIPT_NAME /public/index.php
    PATH_INFO
    PATH_TRANSLATED
    ORIG_PATH_INFO
    ORIG_SCRIPT_NAME /php-run-as-cgi/php-cgi
    ORIG_SCRIPT_FILENAME /usr/php7.2/bin/php-cgi
    ORIG_PATH_TRANSLATED
    PHP_SELF
    REQUEST_TIME_FLOAT 1722171703.1795
    REQUEST_TIME 1722171703
    Environment Variables
    APP_DEBUG 1
    APP_DEFAULT_TIMEZONE Asia/Shanghai
    DATABASE_TYPE mysql
    DATABASE_HOSTNAME 127.0.0.1
    DATABASE_DATABASE gdyueshi
    DATABASE_USERNAME gdyueshi
    DATABASE_PASSWORD AvSlskIIFwqc374351ad
    DATABASE_HOSTPORT 3306
    DATABASE_CHARSET utf8
    DATABASE_DEBUG 1
    DATABASE_PREFIX tp_
    LANG_DEFAULT_LANG zh-cn
    ThinkPHP Constantsempty