throw new HttpException(404, $error);
}
//对比栏目分类
$categoryModel = new CategoryModel();
$category = $categoryModel->getCategoryById($id);
if (!isset($category['id'])) {
$error = '没有找到此产品分类';
$this->assign('error', $error);
throw new HttpException(404, $error);
}
if ($category['status'] != 1 or $category['type'] != 3) {
$error = '没有找到此产品分类';
$this->assign('error', $error);
throw new HttpException(404, $error);
}
//查询当前栏目下的所有子分类的id集合
$category_ids = $categoryModel->where(['parent_id' => $category['id'], 'type' => $category['type'], 'status' => 1])->column('id');
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
REDIRECT_SCRIPT_URL | /product/17.html |
REDIRECT_SCRIPT_URI | http://myhqi.com/product/17.html |
REDIRECT_PATH_INFO | product/17.html |
REDIRECT_STATUS | 200 |
SCRIPT_URL | /product/17.html |
SCRIPT_URI | http://myhqi.com/product/17.html |
proxy-nokeepalive | 1 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | myhqi.com |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
LD_LIBRARY_PATH | /www/server/apache/lib |
SERVER_SIGNATURE | <address>Apache Server at myhqi.com Port 80</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | myhqi.com |
SERVER_ADDR | 172.16.53.104 |
SERVER_PORT | 80 |
REMOTE_ADDR | 54.144.81.21 |
DOCUMENT_ROOT | /www/wwwroot/myhqi.com/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/myhqi.com/public |
SERVER_ADMIN | webmaster@example.com |
SCRIPT_FILENAME | /www/wwwroot/myhqi.com/public/index.php |
REMOTE_PORT | 59870 |
REDIRECT_URL | /product/17.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /product/17.html |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711673198.9315 |
REQUEST_TIME | 1711673198 |
ROOT | /www/wwwroot/myhqi.com/ |
ROOT_DATA | /www/wwwroot/myhqi.com/application/data/ |