$c = db('article')->where(['is_check' => 1, 'urlname' => $urlname])->field('id,urlname,cate_id,keyword')->find();
$new_latest = db('article')->where(['is_check' => 1, 'cate_id' => $c['cate_id']])->field('id,urlname,title')->select();
$this->assign('new_latest', $new_latest);
//详情内容
$article_details = db('article')->where(['is_check' => 1, 'urlname' => $urlname])->find();
//更新文章的人气
$article_details_hits = db('article')->where(['id' => $article_details['id']])->update(['hits' => $article_details['hits'] + 1]);
$article_details['images'] = explode(",", $article_details['images']);
$article_details['seo_keywords'] = explode(",", $article_details['seo_keywords']);
//设置tdk
$this->set_system($article_details['seo_title'], $article_details['seo_keywords'][0], $article_details['seo_description']);
$this->assign('article_details', $article_details);
//详情内容
//查同类
$cate = db('article_category')->where(['is_check' => 1, 'id' => $article_details['cate_id']])->field('parentid,category,urlname')->find();
$article_category = db('article_category')->where(['is_check' => 1, 'parentid' => $cate['parentid']])->field('id,category,urlname')->order('paixu desc')->select();
$this->assign('article_category', $article_category);
PHPSESSID | 1ck06sj4jm5qv3vedov31fr3s3 |
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 |
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 |