//栏目ID
$cat = $this->request->param('catid/d', 0);
if (empty($cat)) {
$cat = $this->request->param('catdir/s', '');
}
//获取栏目数据
$category = getCategory($cat);
// 栏目ID
$catid = $category['id'];
//模型ID
$modelid = $category['modelid'];
$modelInfo = __getModel($modelid);
if (empty($modelInfo)) {
$this->error('模型不存在'); //模型不存在
}
// 浏览量+1
PHPSESSID | ba01b487032861a18a732c967e3f7004 |
think_lang | zh-cn |
USER | nobody |
HOME | / |
HTTP_COOKIE | PHPSESSID=ba01b487032861a18a732c967e3f7004; think_lang=zh-cn |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.81lcd.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
REDIRECT_STATUS | 200 |
SERVER_NAME | wh-nbd277u84j5grcjxzyj.my3w.com |
SERVER_PORT | 80 |
SERVER_ADDR | 10.21.211.213 |
REMOTE_PORT | 33814 |
REMOTE_ADDR | 107.158.144.110 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/user/htdocs |
DOCUMENT_URI | /index.php |
REQUEST_URI | /product/17 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/product/17 |
PATH_INFO | |
SCRIPT_FILENAME | /data/user/htdocs/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1725762260.0914 |
REQUEST_TIME | 1725762260 |