$this->assign('data',$res);
return $this->fetch('Feiyi/tuijian_detail');
}else if($type == 3){
$where = ['status'=>0];
$res = Db::name('heritage_lists')->where(['status'=>0,'id'=>$id])->find();
$pro_one = json_decode($res['project_one'],true);
$pro_two = json_decode($res['project_two'],true);
$arr = [];
$crr = [];
foreach ($pro_one as $k=>$v){
$arr[$k]['project_one'] = $v;
$arr[$k]['project_two'] = $pro_two[$k];
}
Db::name('heritage_lists')->where(['id'=>$id])->setInc('clicks',1);
$up = Db::name('heritage_lists')->where($where)->where('id','<',$id)->order('id DESC')->limit(1)->find();
if($up !=false){
$up['p_id'] = 194;
}
$down = Db::name('heritage_lists')->where($where)->where('id','>',$id)->order('id ASC')->limit(1)->find();
id | 2 |
type | 3 |
p_id | 195 |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/zhonghuameiwang.com/public/index.php |
QUERY_STRING | s=/api/feiyi/detail.html&id=2&&type=3&&p_id=195 |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /api/feiyi/detail.html?id=2&&type=3&&p_id=195 |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/zhonghuameiwang.com/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.16.1 |
REMOTE_ADDR | 44.203.219.117 |
REMOTE_PORT | 46718 |
SERVER_ADDR | 211.149.206.106 |
SERVER_PORT | 80 |
SERVER_NAME | zhonghuameiwang.com |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | zhonghuameiwang.com |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711679628.7082 |
REQUEST_TIME | 1711679628 |
APP_DEBUG | true |
CMF_ROOT | /home/wwwroot/zhonghuameiwang.com/ |
CMF_DATA | /home/wwwroot/zhonghuameiwang.com/data/ |
APP_PATH | /home/wwwroot/zhonghuameiwang.com/app/ |
WEB_ROOT | /home/wwwroot/zhonghuameiwang.com/public/ |
HTMLPURIFIER_PREFIX | /home/wwwroot/zhonghuameiwang.com/vendor/ezyang/htmlpurifier/library |