$contentTemplateInfo = DB::name('DataTemplate')->where(["id" => $articleCate['content_template_id']])->find(); //内容模板信息
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 && !in_array($k, ['title', 'subtitle', 'content', 'keywords'])) {
//处理字段内是否有“|”符号,如果有则拆分成数组
$article[$k] = explode("|", $v);
}
}
if (!empty($article['associated'])) {
$associated = json_decode($article['associated'], true);
$article['associatedList'] = Db::name($associated['tableName'])
->where('id', 'IN', $associated['id'])->order('sort desc,id desc')
ssid | e22fda272409d62d2a708fa0e335993e |
lang | zh-cn |
PHPSESSID | jpmeoqcbn1i0f7s6ce7ntg28d7 |
lang | cn |
USER | www |
HOME | /home/www |
HTTP_COOKIE | ssid=e22fda272409d62d2a708fa0e335993e; lang=zh-cn; PHPSESSID=jpmeoqcbn1i0f7s6ce7ntg28d7 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.sewhome.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | sewhome.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.26.35.20 |
REMOTE_PORT | 34552 |
REMOTE_ADDR | 170.130.206.126 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/sewhome.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/Article/show/cat_id/52/id/19 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/Article/show/cat_id/52/id/19 |
SCRIPT_FILENAME | /www/wwwroot/sewhome.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1735260932.2879 |
REQUEST_TIME | 1735260932 |