#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_CONNECTION close
HTTP_HOST gzssjwl.com
HTTP_REFERER http://gzssjwl.com/
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME 1.com
SERVER_PORT 80
SERVER_ADDR 154.93.230.177
REMOTE_PORT 53267
REMOTE_ADDR 62.122.184.194
SERVER_SOFTWARE nginx/1.24.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.0
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 1718254701.732
REQUEST_TIME 1718254701
0.052828s