#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_USER_AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
HTTP_CACHE_CONTROL no-cache
HTTP_PRAGMA no-cache
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.9
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.9
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_HOST bspone.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME 1.com
SERVER_PORT 80
SERVER_ADDR 154.93.230.178
REMOTE_PORT 45458
REMOTE_ADDR 157.245.100.41
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 1718248590.5379
REQUEST_TIME 1718248590
0.053095s