use think\Db;
class Category extends Frontend{
public function index(){
$p = $this->request->param('p/d', 1);
$id = $this->request->param('id/d', '');
$cate = $this->cats[$id];
if(!$cate) return http_404();
$this->assign('cate', $cate);
$pagesize = 24;
$sid = ($p - 1) * $pagesize;
$map['status'] = 1;
$map['catid'] = $cate['id'];
$list = Db::name('article')->field('id,catid,title,keywords,description,thumb,updatetime,views')->where($map)->order('id desc')->limit($sid, $pagesize)->select();
USER | www |
HOME | /home/www |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.tpic5.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | tpic5.com |
SERVER_PORT | 443 |
SERVER_ADDR | 154.83.15.156 |
REMOTE_PORT | 41796 |
REMOTE_ADDR | 3.91.106.157 |
SERVER_SOFTWARE | nginx/1.24.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/tpic5.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /list/6_1.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/list/6_1.html |
SCRIPT_FILENAME | /www/wwwroot/tpic5.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711702293.5836 |
REQUEST_TIME | 1711702293 |