太阳成集团tyc714cc·(中国)官方VIP网站-App Store

[8] ErrorException in ArticleCate.php line 343

未定义数组索引: pid

  1. $detail['url'] = '/pages/';
  2. }
  3. if($detail['url'] && isHeaderHttp($detail['url'])){//外链
  4. $detail['url'] = $detail['url'];
  5. }else{//站内链接
  6. if($detail['url'] && !preg_match('/^\//',$detail['url'])){
  7. $detail['url'] = '/'.$detail['url'];
  8. }
  9. $pidInfo = Db::name(self::dbTable())->where(['id'=>$detail['pid']])->field('id,title,url')->find();
  10. if(!$pidInfo){
  11. $pidInfo = $detail;
  12. }
  13. $pid = $pidInfo['id'];
  14. if ( $curUrl==$pidInfo['url'] && !in_array($curUrl,self::specUrlArr())){
  15. if($pid==0 && $detail['url']!='/pages/'){
  16. $detail['url'] = $detail['url'];

Call Stack

  1. in ArticleCate.php line 343
  2. at Error::appError(8, 'Undefined index: pid', '/www/wwwroot/hxyg.co...', 343, ['detail' => ['url' => '/pages/'], 'curUrl' => null]) in ArticleCate.php line 343
  3. at ArticleCate::dealLang(['url' => '/pages/']) in Article.php line 209
  4. at Article::deallang(null) in Content.php line 280
  5. at Content->index()
  6. at ReflectionMethod->invokeArgs(object(Content), []) in Container.php line 395
  7. at Container->invokeReflectMethod(object(Content), object(ReflectionMethod), ['cateid' => '6', 'id' => 'index', 'convert' => false]) in Module.php line 131
  8. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  9. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  13. at Module->exec() in Dispatch.php line 168
  14. at Dispatch->run() in App.php line 432
  15. at App->think\{closure}(object(Request), object(Closure), null)
  16. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  19. at Middleware->dispatch(object(Request)) in App.php line 435
  20. at App->run() in index.php line 12

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID bnai4p9kg3qkpm43svq05g5tn2
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=bnai4p9kg3qkpm43svq05g5tn2
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.hxyonggu.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.hxyonggu.com
SERVER_PORT 80
SERVER_ADDR 172.18.192.198
REMOTE_PORT 51076
REMOTE_ADDR 104.206.95.22
SERVER_SOFTWARE nginx/1.16.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/hxyg.com
DOCUMENT_URI /index.php
REQUEST_URI /engineering/6/index.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/engineering/6/index.html
SCRIPT_FILENAME /www/wwwroot/hxyg.com/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1709935223.4111
REQUEST_TIME 1709935223
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/hxyg.com/application/