$this->error('模型不存在!');
}
//更新点击量
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}", true, '*', '', $ifcache);
if (!$info || ($info['status'] !== 1 && !\app\admin\service\User::instance()->isLogin())) {
throw new \think\Exception('内容不存在或未审核!', 404);
}
//栏目扩展配置信息
$setting = $category['setting'];
//内容页模板
$template = $setting['show_template'] ? $setting['show_template'] : 'show';
//去除模板文件后缀
$newstempid = explode(".", $template);
$template = $newstempid[0];
think_shistory | think:[""] |
PHPSESSID | 9c9h76ulb5eh3ouf6k8qrii30f |
think_ | { "__token__": "27a85a45d996f59019d93d65fabe2a28" } |
USER | www |
HOME | /home/www |
HTTP_COOKIE | think_shistory=think%3A%5B%22%22%5D; PHPSESSID=9c9h76ulb5eh3ouf6k8qrii30f |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.csyes.com |
HTTP_USER_AGENT | Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML like Gecko) Chrome/51.0.2704.106 Safari/537.36 |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | csyes.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.26.175.130 |
REMOTE_PORT | 47644 |
REMOTE_ADDR | 104.140.201.74 |
SERVER_SOFTWARE | nginx/1.19.8 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/csyes.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /indoor-fixed-led/31.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//indoor-fixed-led/31.html |
SCRIPT_FILENAME | /www/wwwroot/csyes.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1714145976.3669 |
REQUEST_TIME | 1714145976 |
IF_PUBLIC | true |
ROOT_PATH | /www/wwwroot/csyes.com/public/../ |
APP_PATH | /www/wwwroot/csyes.com/public/../application/ |
DS | / |
ADDON_PATH | /www/wwwroot/csyes.com/public/../addons/ |
ROOT_URL | / |
TEMPLATE_PATH | /www/wwwroot/csyes.com/public/../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 |