if ($cateid <= 0) {
$cateid = input('cateid', 0);
}
if ($cateid == 0) {
return [];
}
$model = new ArticleCategoryModel();
$result = $model->find($cateid);
if (!$result) {
throw new \Exception(sprintf('函数: %s, 参数 id = %s 数据不存在!', __FUNCTION__, $id));
} else {
return $result->toArray();
}
}
}
if (!function_exists('sp_article')) {
/**
* 文章列表.
/products/details-1702_shtml |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /products/details-1702.shtml |
QUERY_STRING | /products/details-1702.shtml |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | /products/details-1702.shtml |
REDIRECT_URL | /products/details-1702.shtml |
REMOTE_PORT | 37446 |
SCRIPT_FILENAME | /www/wwwroot/tpadhesivetape.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/tpadhesivetape.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/tpadhesivetape.com/public |
REMOTE_ADDR | 54.163.62.42 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.24.43.136 |
SERVER_NAME | www.tpadhesivetape.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.tpadhesivetape.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin |
HTTP_HOST | www.tpadhesivetape.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711672490.2046 |
REQUEST_TIME | 1711672490 |