$interid = $request->param('interid'); //具体问题的id
cache::remember('get_interinfo_by_'.$interid,function()use($interid){
return $info = YhInterlocution::with(['getAnswer'=>function($query){
$query->where('yh_anwser_type',22)->order('yh_anwser_created_at','desc');
},'getTag'=>function($query){
$query->field('yh_tag_id,yh_tag_name');
},'getLogo'=>function($query){
$query->field('yh_data_id,yh_data_short,yh_data_logo,yh_data_title');
},'getImg'])->where('yh_interlocution_id',$interid)->where('yh_interlocution_ischeck',1)->find()->toArray();
});
$info = cache::get('get_interinfo_by_'.$interid);
// 计数统计
$total = new Total;
$total->getEveryPageTotal('inter',$interid,$info['yh_interlocution_tagid'],$info['yh_interlocution_memid']);
$intermemid = $info['yh_interlocution_memid'];
USER | www |
HOME | /home/www |
HTTP_HOST | www.yh596.com |
HTTP_REFERER | http://www.yh596.com/showinfo-22-1151-0.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.yh596.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.26.193.191 |
REMOTE_PORT | 43496 |
REMOTE_ADDR | 54.196.27.171 |
SERVER_SOFTWARE | nginx/1.19.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www.yh596.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/quedt/1151 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/quedt/1151 |
SCRIPT_FILENAME | /www/wwwroot/www.yh596.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711657351.2599 |
REQUEST_TIME | 1711657351 |