[8] ErrorException in Single.php line 1031

未定义数组下标: 0

  1. }
  2. }
  3. }
  4. }
  5. }
  6. else
  7. {
  8. // $single = $this->poster_model->with('posterpagesys')->where('id',$id)->find();
  9. $result = ElasticsearchQuery::find('')->index(ElasticService::getIndexName('poster'))->where('id',(int)$id)->size(1)->select();
  10. $single = $result['data'][0]['_source'];
  11. }
  12. if($adminreview == 1)
  13. {
  14. // $single = $this->posteruser_model->with('posterpage')->where('id',$id)->find();
  15. $result = ElasticsearchQuery::find('')->index(ElasticService::getIndexName('poster'))->where('id',(int)$id)->size(1)->select();
  16. $single = $result['data'][0]['_source'];
  17. }
  18. if(!$single){

Call Stack

  1. in Single.php line 1031
  2. at Error::appError(8, 'Undefined offset: 0', '/www/wwwroot/www.xiq...', 1031, ['id' => 'SGueUpEQDwkn', 'adminreview' => 0, 'currentLink' => 'http://www.xiqueqing...', ...]) in Single.php line 1031
  3. at Single->singlepage('SGueUpEQDwkn', 0)
  4. at ReflectionMethod->invokeArgs(object(Single), ['SGueUpEQDwkn', 0]) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Single), object(ReflectionMethod), ['id' => 'SGueUpEQDwkn']) in Module.php line 138
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 143
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 25

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_ALI_CDN_REAL_IP 18.215.15.122
HTTP_X_CLIENT_SCHEME http
HTTP_X_FORWARDED_FOR 18.215.15.122
HTTP_ALI_SWIFT_STAT_HOST www.xiqueqingjian.com
HTTP_ALI_SWIFT_LOG_HOST www.xiqueqingjian.com
HTTP_EAGLEEYE_TRACEID 3da0c01117116199326466280e
HTTP_VIA cn6425.l1, kunlun4.cn6425, l2cn3150.l2, cache60.l2cn3150
HTTP_HOST www.xiqueqingjian.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.xiqueqingjian.com
SERVER_PORT 80
SERVER_ADDR 172.16.198.136
REMOTE_PORT
REMOTE_ADDR 18.215.15.122
SERVER_SOFTWARE nginx/1.12.2
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.xiqueqingjian.com/public
DOCUMENT_URI /index.php
REQUEST_URI /singlepage/SGueUpEQDwkn
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//index/single/singlepage/id/SGueUpEQDwkn.html
SCRIPT_FILENAME /www/wwwroot/www.xiqueqingjian.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711619933.121803
REQUEST_TIME 1711619933
Environment Variablesempty
ThinkPHP Constants
PHPEXCEL_ROOT /www/wwwroot/www.xiqueqingjian.com/vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/../../
CALCULATION_REGEXP_CELLREF ((([^\s,!&%^\/\*\+<>=-]*)|('[^']*')|(\"[^\"]*\"))!)?\$?([a-z]{1,3})\$?(\d{1,7})
CALCULATION_REGEXP_NAMEDRANGE ((([^\s,!&%^\/\*\+<>=-]*)|('[^']*')|(\"[^\"]*\"))!)?([_A-Z][_A-Z0-9\.]*)