法老王下载平台news

[8] ErrorException in Base.php line 123

未界说数组索引: article_sub

  1. public function getArticleInfo(){
  2. $id = $this->request->param('id','');
  3. if(empty($id)){
  4. $this->error('缺少参数');
  5. }
  6. $info = Article::with('articleSub')
  7. ->field('id,title,subtitle,cid,author,click,picture,seo_t,seo_k,seo_d,intro,create_time')
  8. ->find($id);
  9. $info['imgs'] = explode(',',$info['article_sub']['imgs']);
  10. $info['content'] = $info['article_sub']['content'];
  11. unset($info['article_sub']);
  12. Db::name('article')->where('id',$id)->setInc('click');
  13. return $info;
  14. }
  15. /**
  16. * 获取某个导航下级
  17. */

Call Stack

  1. in Base.php line 123
  2. at Error::appError(8, 'Undefined index: art...', '/data/home/byu544054...', 123, ['id' => 'index', 'info' => ['imgs' => ['']]]) in Base.php line 123
  3. at Base->getArticleInfo() in Base.php line 67
  4. at Base->detail()
  5. at ReflectionMethod->invokeArgs(object(Call), []) in Container.php line 395
  6. at Container->invokeReflectMethod(object(Call), object(ReflectionMethod), ['id' => 'index']) in Module.php line 136
  7. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  8. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  9. at Middleware->think\{closure}(object(Request))
  10. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  11. at Middleware->dispatch(object(Request), 'controller') in Module.php line 141
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 432
  14. at App->think\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  16. at Middleware->think\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  18. at Middleware->dispatch(object(Request)) in App.php line 435
  19. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
_vstime 1563176370
Sessionempty
Server/Request Data
DOCUMENT_ROOT /usr/home/byu5440540001/htdocs
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT */*
HTTP_COOKIE _vstime=1563176370
HTTP_HOST www.glzy.cn
HTTP_REFERER
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2)
PATH /bin:/usr/bin
PHPRC /var/www/php71/hichina_ini/byu5440540001
QUERY_STRING
REDIRECT_DOCUMENT_ROOT /usr/home/byu5440540001/htdocs
REDIRECT_GATEWAY_INTERFACE CGI/1.1
REDIRECT_HTTP_ACCEPT */*
REDIRECT_HTTP_COOKIE _vstime=1563176370
REDIRECT_HTTP_HOST www.glzy.cn
REDIRECT_HTTP_REFERER
REDIRECT_HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2)
REDIRECT_PATH /bin:/usr/bin
REDIRECT_PATH_INFO /call/detail/id/index.html
REDIRECT_PATH_TRANSLATED redirect:/index.php/call/detail/id/index.html/detail/id/index.html
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR 108.62.60.82
REDIRECT_REMOTE_PORT 51492
REDIRECT_REQUEST_METHOD GET
REDIRECT_REQUEST_URI /index/call/detail/id/index.html
REDIRECT_SCRIPT_FILENAME /usr/home/byu5440540001/htdocs/index
REDIRECT_SCRIPT_NAME /index
REDIRECT_SERVER_ADDR 172.17.155.172
REDIRECT_SERVER_ADMIN webmaster@byu5440540001.my3w.com
REDIRECT_SERVER_NAME www.glzy.cn
REDIRECT_SERVER_PORT 80
REDIRECT_SERVER_PROTOCOL HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE Apache
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID XSwtqKwRm6wAAGJpo-YAAAAE
REDIRECT_URL /index/call/detail/id/index.html
REDIRECT_gzip_only_text_html 1
REMOTE_ADDR 108.62.60.82
REMOTE_PORT 51492
REQUEST_METHOD GET
REQUEST_URI /index/call/detail/id/index.html
SCRIPT_FILENAME /usr/home/byu5440540001/htdocs/index.php
SCRIPT_NAME /index.php
SERVER_ADDR 172.17.155.172
SERVER_ADMIN webmaster@byu5440540001.my3w.com
SERVER_NAME www.glzy.cn
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
UNIQUE_ID XSwtqKwRm6wAAGJpo-YAAAAE
gzip_only_text_html 1
ORIG_PATH_INFO /index/call/detail/id/index.html
ORIG_PATH_TRANSLATED /usr/home/byu5440540001/htdocs/index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1563176360.7304
REQUEST_TIME 1563176360
Environment Variablesempty
ThinkPHP Constants
APP_PATH /data/home/byu5440540001/htdocs/application/

法老王下载平台

澳门法老王宫殿娱乐