*/
public function read($id)
{
// 查询所有栏目
$categories = Category::select();
// 查询友情链接
$links = LinkService::getLink();
// 查询当前文章
$article = Article::with(['category'])->find($id);
$article->inc('eyes', 1)->update();
$site = Site::with('template')->find($article->site_id);
// 查询热点新闻
$tops = Article::where('site_id', $site->id)
->where('is_top', 1)
->order('update_time', 'by desc')
->limit(11)
->select();
$hots = ArticleService::getHots($site->id);
$template_name = $site->template->template_name ? $site->template->template_name : '/index/sub';
file | { "web_logo": "" } |
system | { "admin_name": "CMS\u540e\u53f0\u7ba1\u7406", "web_name": "", "keywords": "CMS,\u7f51\u7ad9", "copyright": "ico-\u5907\u6848\u53f7", "desc": "CMS\u5efa\u7ad9\u7cfb\u7edf...", "web_title": "", "admin_title": "", "domain_prefix": "web.o0u.cn" } |
USER | www |
HOME | /home/www |
HTTP_HOST | www.carwifi.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.iautow.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 103.108.193.77 |
REMOTE_PORT | 40532 |
REMOTE_ADDR | 3.94.102.228 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www.icarw.cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /news/20200728/80.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//news/20200728/80.html |
SCRIPT_FILENAME | /www/wwwroot/www.icarw.cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711640572.0946 |
REQUEST_TIME | 1711640572 |