}
//根据网址取出来id
$content = Db::name($modelInfo['tablename'])->where('url', $title)->find();
//更新点击量
Db::name($modelInfo['tablename'])->where('id', $content['id'])->setInc('hits');
//内容所有字段
$ifcache = $this->cmsConfig['site_cache_time'] ? $this->cmsConfig['site_cache_time'] : false;
$info = $this->Cms_Model->getContent($modelid, ['catid' => $catid, 'title' => $content['title']], $title, true, '*', '', true);
if (!$info || ($info['status'] !== 1 && !\app\admin\service\User::instance()->isLogin())) {
throw new \think\exception\HttpException(404, '内容不存在或未审核!');
}
//内容分页
$paginator = strpos($info['content'], '[page]');
if ($paginator !== false) {
$contents = array_filter(explode('[page]', $info['content']));
$total = count($contents);
$pages = \app\cms\paginator\Page::make([], 1, $page, $total, false, ['path' => $this->request->baseUrl()]);
//判断[page]出现的位置是否在第一位
if ($paginator < 7) {
USER | www |
HOME | /home/www |
HTTP_REFERER | https://kfcscrane.com/New/Operated-by-remote-control--it-has-the-characteristics-of-turning-large-workpieces-in-a-large-range-without-slipping-or-rotating.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.kfcscrane.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.kfcscrane.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.22.64.83 |
REMOTE_PORT | 46420 |
REMOTE_ADDR | 35.171.159.141 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/www.kfcscrane.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /New/Operated-by-remote-control--it-has-the-characteristics-of-turning-large-workpieces-in-a-large-range-without-slipping-or-rotating.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/New/Operated-by-remote-control--it-has-the-characteristics-of-turning-large-workpieces-in-a-large-range-without-slipping-or-rotating.html |
SCRIPT_FILENAME | /www/wwwroot/www.kfcscrane.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711663671.4617 |
REQUEST_TIME | 1711663671 |
IF_PUBLIC | true |
ROOT_PATH | /www/wwwroot/www.kfcscrane.com/public/../ |
APP_PATH | /www/wwwroot/www.kfcscrane.com/public/../application/ |
DS | / |
ROOT_URL | / |
TEMPLATE_PATH | /www/wwwroot/www.kfcscrane.com/public/../templates/ |
FILTER_VALIDATE_BOOL | 258 |
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 |
ADDON_PATH | /www/wwwroot/www.kfcscrane.com/public/../addons/ |