16877太阳集团·首頁

[8] ErrorException in Article.php line 106

未定义数组索引: seo_keywords

  1. $c = db('article')->where(['is_check' => 1, 'urlname' => $urlname])->field('id,urlname,cate_id,keyword')->find();
  2. $new_latest = db('article')->where(['is_check' => 1, 'cate_id' => $c['cate_id']])->field('id,urlname,title')->select();
  3. $this->assign('new_latest', $new_latest);
  4. //详情内容
  5. $article_details = db('article')->where(['is_check' => 1, 'urlname' => $urlname])->find();
  6. //更新文章的人气
  7. $article_details_hits = db('article')->where(['id' => $article_details['id']])->update(['hits' => $article_details['hits'] + 1]);
  8. $article_details['images'] = explode(",", $article_details['images']);
  9. $article_details['seo_keywords'] = explode(",", $article_details['seo_keywords']);
  10. //设置tdk
  11. $this->set_system($article_details['seo_title'], $article_details['seo_keywords'][0], $article_details['seo_description']);
  12. $this->assign('article_details', $article_details);
  13. //详情内容
  14. //查同类
  15. $cate = db('article_category')->where(['is_check' => 1, 'id' => $article_details['cate_id']])->field('parentid,category,urlname')->find();
  16. $article_category = db('article_category')->where(['is_check' => 1, 'parentid' => $cate['parentid']])->field('id,category,urlname')->order('paixu desc')->select();
  17. $this->assign('article_category', $article_category);

Call Stack

  1. in Article.php line 106
  2. at Error::appError(8, 'Undefined index: seo...', 'E:\wwwroot\chdcjx.co...', 106, ['urlname' => 'article', 'article_category' => [['id' => 1, 'urlname' => 'gsxw', 'category' => '公司新闻', ...], ['id' => 2, 'urlname' => 'xyxw', 'category' => '行业新闻', ...]], 'v' => ['id' => 2, 'urlname' => 'xyxw', 'category' => '行业新闻', ...], ...]) in Article.php line 106
  3. at Article->details()
  4. at ReflectionMethod->invokeArgs(object(Article), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Article), object(ReflectionMethod), ['city' => 'article', 'convert' => false]) in Module.php line 131
  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 136
  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 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID 1ck06sj4jm5qv3vedov31fr3s3
Sessionempty
Server/Request Data
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\Administrator\AppData\Roaming
CLIENTNAME WIN-9M8VKJTM48G
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME WIN-M004K9U4BFM
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
HOMEDRIVE C:
HOMEPATH \Users\Administrator
LOCALAPPDATA C:\Users\Administrator\AppData\Local
LOGONSERVER \\WIN-M004K9U4BFM
NUMBER_OF_PROCESSORS 8
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 3e04
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC C:\Users\Public
SESSIONNAME RDP-Tcp#0
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Users\ADMINI~1\AppData\Local\Temp\2
TMP C:\Users\ADMINI~1\AppData\Local\Temp\2
USERDOMAIN WIN-M004K9U4BFM
USERNAME Administrator
USERPROFILE C:\Users\Administrator
windir C:\Windows
HTTP_COOKIE PHPSESSID=1ck06sj4jm5qv3vedov31fr3s3
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_CONNECTION close
HTTP_X_FORWARDED_FOR 107.158.240.82
HTTP_X_REAL_IP 107.158.240.82
HTTP_HOST www.chdcjx.com
REDIRECT_STATUS 200
SERVER_NAME 127.0.0.1
SERVER_PORT 8008
SERVER_ADDR 192.168.0.15
REMOTE_PORT 54223
REMOTE_ADDR 192.168.0.9
SERVER_SOFTWARE nginx/1.15.11
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.0
DOCUMENT_ROOT E:/wwwroot/chdcjx.com/public
DOCUMENT_URI /index.php
REQUEST_URI //art/article.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/art/article.html
PATH_TRANSLATED E:/wwwroot/chdcjx.com/public
PATH_INFO
SCRIPT_FILENAME E:/wwwroot/chdcjx.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1731605759.9626
REQUEST_TIME 1731605759
Environment Variablesempty
ThinkPHP Constants
DS \
APP_PATH E:\wwwroot\chdcjx.com\public/../application/
CONF_PATH E:\wwwroot\chdcjx.com\public/../config/
PUBILC_PATH E:\wwwroot\chdcjx.com\public/
ROOT_PATH E:\wwwroot\chdcjx.com\public
CACHE_PATH E:\wwwroot\chdcjx.com\public/../runtime/
CONFIG_PATH E:\wwwroot\chdcjx.com\public/../config/
UPLOAD_PATH uploads
Baidu
sogou