//判断是否存在外链
if($article_details['url']){
echo '<script>window.location.href="'.$article_details['url'].'";</script>';exit;
}
//更新文章的人气
$article_details_hits = db('article')->where(['id' => $article_details['id']])->update(['hits' => $article_details['hits'] + 1]);
$article_details['images'] = explode(",", $article_details['images']);
//设置tdk
$this->set_system($article_details['seo_title'], $article_details['seo_keywords'], $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);
//面包屑
$mbx = '';
foreach ($article_category as $k => $v) {
$url = filter_url(url('article/lists', ['city' => $this->city, 'urlname' => $v['urlname']]));
PATH | C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\ |
SYSTEMROOT | C:\Windows |
COMSPEC | C:\Windows\system32\cmd.exe |
PATHEXT | .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC |
WINDIR | C:\Windows |
PHPRC | D:/phpstudy_pro/Extensions/php/php7.0.9nts |
_FCGI_SHUTDOWN_EVENT_ | 13332 |
HTTP_CONNECTION | close |
SCRIPT_NAME | /index.php |
REQUEST_URI | /art/Anqing/hydt111.html |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /art/Anqing/hydt111.html |
REMOTE_PORT | 57688 |
SCRIPT_FILENAME | D:/wwwroot/beisenzx.cn/public/index.php |
SERVER_ADMIN | admin@example.com |
CONTEXT_DOCUMENT_ROOT | D:/wwwroot/beisenzx.cn/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | D:/wwwroot/beisenzx.cn/public |
REMOTE_ADDR | 34.239.148.106 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.238.225 |
SERVER_NAME | www.xrjjf.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | |
SystemRoot | C:\Windows |
HTTP_HOST | www.xrjjf.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
REDIRECT_STATUS | 200 |
REDIRECT_PATH_INFO | art/Anqing/hydt111.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711559.8775 |
REQUEST_TIME | 1711711559 |
DS | \ |
APP_PATH | D:\wwwroot\beisenzx.cn\public/../application/ |
CONF_PATH | D:\wwwroot\beisenzx.cn\public/../config/ |
PUBILC_PATH | D:\wwwroot\beisenzx.cn\public/ |
ROOT_PATH | D:\wwwroot\beisenzx.cn\public |
CACHE_PATH | D:\wwwroot\beisenzx.cn\public/../runtime/ |
CONFIG_PATH | D:\wwwroot\beisenzx.cn\public/../config/ |
UPLOAD_PATH | uploads |