->join('document_model m','c.model_id = m.id', 'left')
->select();
return list_for_level($list);
}
public function find($cat_id)
{
$catInfo = $this->where('id', $cat_id)->find();
$catInfo->url = url('index/category/index', ['cat_id' => $catInfo->id]);
return $catInfo;
}
public function getCategoryById($site_id, $id)
{
return self::where('site_id', '=', $site_id)
->where('id', $id)
->find();
}
index | { "site_id": 1 } |
USER | www |
HOME | /home/www |
HTTP_CF_CONNECTING_IP | 54.92.135.47 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_RAY | 86bffcb78d0c0835-IAD |
HTTP_X_FORWARDED_FOR | 54.92.135.47 |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_CF_IPCOUNTRY | US |
HTTP_CDN_LOOP | cloudflare |
HTTP_HOST | www.xtalong.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.xtalong.com |
SERVER_PORT | 443 |
SERVER_ADDR | 10.8.165.124 |
REMOTE_PORT | 14186 |
REMOTE_ADDR | 172.70.38.8 |
SERVER_SOFTWARE | nginx/1.21.4 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/www.xtalong.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /channel-66.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/channel-66.html |
SCRIPT_FILENAME | /www/wwwroot/www.xtalong.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711716643.0584 |
REQUEST_TIME | 1711716643 |
QINIU_FUNCTIONS_VERSION | 7.2.9 |