必赢7321_必赢7321手机入口

[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/www.zc-...', 343, ['detail' => ['url' => '/pages/'], 'curUrl' => null]) in ArticleCate.php line 343
  3. at ArticleCate::dealLang(['url' => '/pages/']) in Article.php line 213
  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' => '21', 'id' => '20', '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 22

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.zc-hightech.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.zc-hightech.com
SERVER_PORT 443
SERVER_ADDR 172.18.111.6
REMOTE_PORT 45166
REMOTE_ADDR 104.206.1.62
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.zc-hightech.com/public
DOCUMENT_URI /index.php
REQUEST_URI /news/21/20
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/news/21/20
SCRIPT_FILENAME /www/wwwroot/www.zc-hightech.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1705683172.1546
REQUEST_TIME 1705683172
Environment Variablesempty
ThinkPHP Constants
TEMP_HTML_PATH ./html/
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256
Baidu
sogou