$q->where(function ($q) use ($ap, $cur, $def) {$q->where($ap . 'lang', $cur);if ($cur !== $def) {$q->whereOr($ap . 'lang', $def);}});}// ★ 2026-10-21 城市作用域(移植 cnyini applyCityScope):分站=本城专属+共享(本城置顶,// 单页正文与列表 paginate 同语义);主域=仅共享。本方法现有调用方均无 join/alias,裸列名安全。\Plugin\Cnyini\Services\ContentQueryService::applyCityScope($q, true);return $q;}/*** 通用内容 - 列表 / 单页入口* 路由:?s=/addons/website/index.Index/contentList/code/news 或 ?s=/addons/website/index.Index/contentList/code/page/slug/about*/protected function renderContentDetail(array $type, array $item, string $tpl)
| USER | www |
| HOME | /home/www |
| HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| HTTP_ACCEPT | */* |
| HTTP_CONNECTION | close |
| HTTP_REMOTE_HOST | 216.73.217.139 |
| HTTP_X_FORWARDED_PORT | 443 |
| HTTP_X_FORWARDED_HOST | eniok.com |
| HTTP_X_FORWARDED_PROTO | https |
| HTTP_X_FORWARDED_FOR | 216.73.217.139 |
| HTTP_X_REAL_PORT | 12860 |
| HTTP_X_REAL_IP | 216.73.217.139 |
| PATH_INFO | |
| HTTP_HOST | eniomni-marketing.eniok.net |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | eniomni-marketing.eniok.net |
| SERVER_PORT | 443 |
| SERVER_ADDR | 10.0.0.10 |
| REMOTE_PORT | 33704 |
| REMOTE_ADDR | 47.100.184.124 |
| SERVER_SOFTWARE | nginx/1.31.2 |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTPS | on |
| REQUEST_SCHEME | https |
| SERVER_PROTOCOL | HTTP/1.1 |
| DOCUMENT_ROOT | /www/wwwroot/eniok-v2026/eniomni-marketing.eniok.net/public |
| DOCUMENT_URI | /index.php |
| REQUEST_URI | /terms/terms.html |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | s=/terms/terms.html |
| SCRIPT_FILENAME | /www/wwwroot/eniok-v2026/eniomni-marketing.eniok.net/public/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1792658723.3623 |
| REQUEST_TIME | 1792658723 |