/**
* 样式素材详情
*/
public function styleDetail()
{
$style_id = $this->request->param('id');
if ($style_id < 1) {
return $this->error('参数错误', '/home/sck/index');
}
$style = Style::getInstance()->where('old_id', '=', $style_id)->find()->toArray();
if (empty($style)) {
return $this->error('暂无此素材', '/home/sck/index');
}
$style['tags'] = explode(' ', trim($style['tags']));
$arr = [];
$time = $style['hits_time'];
if (date("Y") > date("Y", strtotime($time))) {
$arr['hits_year'] = 1;
} else if (date("Y") == date("Y", strtotime($time))) {
USER | www |
HOME | /home/www |
HTTP_REFERER | http://www.xmyeditor.com/sck/1729.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.xmyeditor.com |
PATH_INFO | /sck/1729.html |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.xmyeditor.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.17.16.15 |
REMOTE_PORT | 51650 |
REMOTE_ADDR | 35.175.200.199 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /data/editor.com/public |
DOCUMENT_URI | /index.php/sck/1729.html |
REQUEST_URI | /sck/1729.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
SCRIPT_FILENAME | /data/editor.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/sck/1729.html |
REQUEST_TIME_FLOAT | 1711714671.072 |
REQUEST_TIME | 1711714671 |
SITE_PATH | /data/editor.com/public/ |
SITE_URL | https://www.xmyeditor.com |
APP_NAMESPACE | zzcms |
SEO_TIT | 速排小蚂蚁 |
FILTER_VALIDATE_BOOL | 258 |
QINIU_FUNCTIONS_VERSION | 7.9.0 |