public function index($aid){
//---------检测栏目是否存在避免出现各种假栏目
$cid = get_cid();
if(!$cid){
throw new \think\exception\HttpException(404, '当前栏目不存在!', null);
}
if(!is_numeric($aid)){
$this -> error('内容参数不正确!','/');
}
// ---------更新文章阅读量
Db::name('content')
USER | nobody |
HOME | / |
HTTP_HOST | www.hbevw.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
REDIRECT_STATUS | 200 |
SERVER_NAME | wh-nbc15rytqqumtszuar2.my3w.com |
SERVER_PORT | 80 |
SERVER_ADDR | 10.21.190.138 |
REMOTE_PORT | 56936 |
REMOTE_ADDR | 34.229.239.82 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/user/htdocs |
DOCUMENT_URI | /index.php |
REQUEST_URI | /a/hydt/2019/0326/1253.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//a/hydt/2019/0326/1253.html |
PATH_INFO | |
SCRIPT_FILENAME | /data/user/htdocs/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711706758.4179 |
REQUEST_TIME | 1711706758 |
BASE_PATH | /data/user/htdocs/ |
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 |