#0 [2]ErrorException in common.php line 78

array_rand(): Array is empty

  1. }
  2. /**
  3. * 外联
  4. * @return string
  5. */
  6. function wailian()
  7. {
  8. $link = file(root_path('extend') . 'wailian.txt');
  9. $new = array_rand($link, 1);
  10. return isset($link[$new]) ? trim($link[$new]) : Request::rootDomain();
  11. }
  12. /**
  13. * 标题
  14. * @return string
  15. */
  16. function biaoti()
  17. {

Call Stack

  1. in common.php line 78
  2. at Error->appError()
  3. at array_rand() in common.php line 78
  4. at wailian() in Index.php line 26
  5. at Index->index() in Index.php line 80
  6. at Index->route()
  7. at ReflectionMethod->invokeArgs() in Container.php line 344
  8. at Container->invokeReflectMethod() in Controller.php line 110
  9. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  10. at Pipeline->think\{closure}() in Pipeline.php line 66
  11. at Pipeline->then() in Controller.php line 113
  12. at Controller->exec() in Dispatch.php line 90
  13. at Dispatch->run() in Route.php line 785
  14. at Route->think\{closure}() in Pipeline.php line 59
  15. at Pipeline->think\{closure}() in Pipeline.php line 66
  16. at Pipeline->then() in Route.php line 786
  17. at Route->dispatch() in Http.php line 216
  18. at Http->dispatchToRoute() in Http.php line 206
  19. at Http->think\{closure}() in Pipeline.php line 59
  20. at Pipeline->think\{closure}() in TraceDebug.php line 71
  21. at TraceDebug->handle()
  22. at call_user_func() in Middleware.php line 142
  23. at Middleware->think\{closure}() in Pipeline.php line 85
  24. at Pipeline->think\{closure}() in Pipeline.php line 66
  25. at Pipeline->then() in Http.php line 207
  26. at Http->runWithRequest() in Http.php line 170
  27. at Http->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_PRAGMA no-cache
HTTP_CONNECTION keep-alive, close
HTTP_CACHE_CONTROL no-cache
HTTP_ACCEPT_LANGUAGE zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
HTTP_USER_AGENT Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1
HTTP_HOST xuejo.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME 1.com
SERVER_PORT 80
SERVER_ADDR 154.81.122.182
REMOTE_PORT 34679
REMOTE_ADDR 110.166.71.39
SERVER_SOFTWARE nginx/1.24.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/1.com/public
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/1.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1718268101.144
REQUEST_TIME 1718268101
0.053021s