return $res;
}
//详细
public function get($id,$model='index',$map=[]){
$where[]=['is_deleted','=',0];
$where[]=['status','=',1];
$where[]=['id','=',$id];
$res = $this->with(['cate'])->where($where)->where($map)->find();
$res['pre']=$this->getPre($id,$res['cate_id'],$model,$map);
$res['next']=$this->getNext($id,$res['cate_id'],$model,$map);
return $res;
}
//上一篇
public function getPre($id,$cate_id,$model='index',$map)
{
$where[]=['is_deleted','=',0];
$where[]=['status','=',1];
$where[]=['id','<',$id];
$where[]=['cate_id','=',$cate_id];
USER | www |
HOME | /home/www |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.024ec.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | 024ec.com |
SERVER_PORT | 443 |
SERVER_ADDR | 122.114.59.169 |
REMOTE_PORT | 35980 |
REMOTE_ADDR | 35.175.212.5 |
SERVER_SOFTWARE | nginx/1.16.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/pcone/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /new/696.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/new/696.html |
SCRIPT_FILENAME | /www/wwwroot/pcone/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711658796.342 |
REQUEST_TIME | 1711658796 |
QINIU_FUNCTIONS_VERSION | 7.2.10 |