if (empty($cid)) {
$firstCategory = $this->support_category_model->where('status', 1)
->where('pid', 0)
->where('lang', 'like', '%de%')
->order('sort asc, id asc')->find();
$cid = $firstCategory['id'];
}
//当前分类
$current = $this->support_category_model->where('id', $cid)->find()->toArray();
if (empty($current)) {
return false;
}
//如果当前分类的path为空,1级栏目,则自动读取该栏目子栏目下的第一个id栏目
/* $path_array = array_filter(explode(',', $current['path'])); //转化$path为数组,并过滤空值
if (empty($path_array)) {
$current = $this->support_category_model->where('pid', $current['id'])->where('status', 1)->order('sort asc, id asc')->find();
$cid = $current['id'];
USER | www |
HOME | /home/www |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.mornsunpower.de |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.mornsunpower.de |
SERVER_PORT | 443 |
SERVER_ADDR | 172.18.60.110 |
REMOTE_PORT | 48426 |
REMOTE_ADDR | 3.237.232.196 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/www.mornsunpower.de/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /html/support/11/technical-video.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/html/support/11/technical-video.html |
SCRIPT_FILENAME | /www/wwwroot/www.mornsunpower.de/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711708.4451 |
REQUEST_TIME | 1711711708 |
ROOT_PATH | /www/wwwroot/www.mornsunpower.de/public/ |