if(!$contentTemplateInfo['table_name']){
return $this->fetch("error_page");
exit;
}
//获得当前图文信息
$article = Db::name($contentTemplateInfo['table_name'])->where('id',$id)->find();
foreach ($article AS $k => $v){
if (!empty($v) && strpos($v, "|") !== false) {
//处理字段内是否有“|”符号,如果有则拆分成数组
$article[$k] = explode("|", $v);
}
}
$this->assign('article',$article);
$prefix = config("database.connections.mysql.prefix"); //数据表前缀
//浏览次数+1
ssid | ed6f9d946f20b6f674b1025669017b5d |
lang | zh-cn |
lang | cn |
USER | www |
HOME | /home/www |
HTTP_COOKIE | ssid=ed6f9d946f20b6f674b1025669017b5d; lang=zh-cn |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.puyunkeji.com |
HTTP_USER_AGENT | Googlebot-Image/1.0 |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | puyunkeji.com |
SERVER_PORT | 443 |
SERVER_ADDR | 10.0.8.12 |
REMOTE_PORT | 42118 |
REMOTE_ADDR | 170.130.200.186 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/puyunkeji.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/Article/show/cat_id/28/id/favicon.ico |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/Article/show/cat_id/28/id/favicon.ico |
SCRIPT_FILENAME | /www/wwwroot/puyunkeji.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1719866478.688 |
REQUEST_TIME | 1719866478 |