if (empty($modelInfo)) {
throw new \think\Exception('栏目不存在!', 404);
}
//更新点击量
Db::name($modelInfo['tablename'])->where('id', $id)->setInc('hits');
//内容所有字段
$ifcache = $this->cmsConfig['site_cache_time'] ? $this->cmsConfig['site_cache_time'] : false;
$info = $this->Cms_Model->getContent($modelid, "id='" . $id . "' and status='1'", true, '*', '', $ifcache);
if (empty($info)) {
throw new \think\Exception('内容不存在或未审核!', 404);
}
//栏目扩展配置信息
$setting = $category['setting'];
//内容页模板
$template = $setting['show_template'] ? $setting['show_template'] : 'show';
//去除模板文件后缀
$newstempid = explode(".", $template);
$template = $newstempid[0];
unset($newstempid);
/shows/8/13_html |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /shows/8/13.html |
QUERY_STRING | /shows/8/13.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | /shows/8/13.html |
REDIRECT_URL | /shows/8/13.html |
REMOTE_PORT | 51068 |
SCRIPT_FILENAME | /www/wwwroot/infedium.com/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/infedium.com |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/infedium.com |
REMOTE_ADDR | 44.223.40.255 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.221.88 |
SERVER_NAME | infedium.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at infedium.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin |
HTTP_HOST | infedium.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711695644.0981 |
REQUEST_TIME | 1711695644 |
ROOT_PATH | /www/wwwroot/infedium.com/ |
APP_PATH | /www/wwwroot/infedium.com/application/ |
DS | / |
ADDON_PATH | /www/wwwroot/infedium.com/addons/ |
ROOT_URL | / |
TEMPLATE_PATH | /www/wwwroot/infedium.com/templates/ |
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 |