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 | 2454d372aa010306a9c9e5592733a5c8 |
lang | zh-cn |
lang | cn |
LoginCaptcha | 202305152954132704 |
REDIRECT_REDIRECT_UNIQUE_ID | ZG6KY38AAAEAAEAjYeoAAAAT |
REDIRECT_REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | ZG6KY38AAAEAAEAjYeoAAAAT |
REDIRECT_HANDLER | application/x-httpd-php7 |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZG6KY38AAAEAAEAjYeoAAAAT |
HTTP_USER_AGENT | Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.5672.126 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
HTTP_HOST | www.whzscsw.com |
HTTP_ACCEPT | */* |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_COOKIE | ssid=2454d372aa010306a9c9e5592733a5c8; lang=zh-cn |
PATH | /usr/bin:/bin |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.whzscsw.com |
SERVER_ADDR | 122.114.134.133 |
SERVER_PORT | 80 |
REMOTE_ADDR | 23.230.98.122 |
DOCUMENT_ROOT | /www/users/HA688563/WEB |
SERVER_ADMIN | vhost@zzidc.com |
SCRIPT_FILENAME | /www/users/HA688563/WEB/index.php |
REMOTE_PORT | 52614 |
REDIRECT_QUERY_STRING | s=/index/Article/show/cat_id/3/id/site-product-15.html |
REDIRECT_URL | /index.php |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/Article/show/cat_id/3/id/site-product-15.html |
REQUEST_URI | /index/Article/show/cat_id/3/id/site-product-15.html |
SCRIPT_NAME | /index.php |
ORIG_SCRIPT_FILENAME | /usr/local/zend/php7.2/bin/php-cgi |
ORIG_PATH_INFO | /index.php |
ORIG_PATH_TRANSLATED | /www/users/HA688563/WEB/index.php |
ORIG_SCRIPT_NAME | /php72-cgi |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1684965987.3571 |
REQUEST_TIME | 1684965987 |