$content = db($table_name)->where('id',$id)->find();
Db::name($table_name)->where('id',$id)->setInc('click',1); //每点击一次click增加1
$click = $content['click'];
$content['content'] = '';
}
}
}
//获取当前文档标题
$title = $content['title'];
$keywords = $content['keywords'];
$description = $content['description'];
if (!empty(model('ProductImg')->where('aid',$id)->find())){
$picture = model('ProductImg')->where('aid',$id)->order(['sort'=>'asc','imgid'=>'asc'])->cache(true,3600*24)->select();
}else{
$picture = '';
}
//判断是否存在下载文件
cid | 3 |
USER | www |
HOME | /home/www |
HTTP_HOST | henglispring.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | henglispring.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.31.158.82 |
REMOTE_PORT | 55156 |
REMOTE_ADDR | 44.210.103.233 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/henglispring.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /chanpinzhongxin/list_3_3.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/chanpinzhongxin/list_3_3.html |
SCRIPT_FILENAME | /www/wwwroot/henglispring.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711690530.0349 |
REQUEST_TIME | 1711690530 |
DS | / |
APP_PATH | /www/wwwroot/henglispring.com/application/ |
APP_DEBUG | false |