js33333金沙线路(中国)检测公司官方网站

[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' => '9', 'id' => 'product', '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 2iip7q8nkel823aqfl1lcq1th8
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=2iip7q8nkel823aqfl1lcq1th8
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.hxyonggu.com
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.hxyonggu.com
SERVER_PORT 80
SERVER_ADDR 172.18.192.198
REMOTE_PORT 59672
REMOTE_ADDR 104.140.12.178
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 //product/9/product/18.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/product/9/product/18.html
SCRIPT_FILENAME /www/wwwroot/hxyg.com/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710205543.4867
REQUEST_TIME 1710205543
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/hxyg.com/application/
360
XML 地图