$temp = Db::name('template')
->alias('a')
->join ('group b','a.industry_type = b.id', 'LEFT')
->join ('group c','a.type = c.id', 'LEFT')
->where(array('a.id'=>$id,'a.status'=>1))
->field('a.*,b.title as industryname,c.title as typename')
->find();
$temp['carouselimg']=json_decode($temp['carouselimg']);
$temp['carouselimg']=$temp['carouselimg'][0];
if(preg_match($preg,$temp['url']))
{
}else {
$temp['url']='http://'.$temp['url'];
}
$in_type= trim($temp['industry_type'], ",");
$in_type_id=explode(',', $in_type);
$industrygroup= Db::name('group')->where('id',$in_type_id[0])->field('id,title')->find();
$where['id']=['in',$temp['color'],$temp['type'], $temp['client'],$in_type];
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
REDIRECT_STATUS | 200 |
proxy-nokeepalive | 1 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | jiagou.cqhot.cn |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
LD_LIBRARY_PATH | /www/server/apache/lib |
SERVER_SIGNATURE | <address>Apache Server at jiagou.cqhot.cn Port 80</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | jiagou.cqhot.cn |
SERVER_ADDR | 119.84.73.132 |
SERVER_PORT | 80 |
REMOTE_ADDR | 3.237.189.116 |
DOCUMENT_ROOT | /www/wwwroot/111/1111/template/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/111/1111/template/public |
SERVER_ADMIN | webmaster@example.com |
SCRIPT_FILENAME | /www/wwwroot/111/1111/template/public/index.php |
REMOTE_PORT | 46280 |
REDIRECT_URL | /template/index/details/id/99.html |
REDIRECT_QUERY_STRING | s=template/index/details/id/99.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | s=template/index/details/id/99.html |
REQUEST_URI | /template/index/details/id/99.html |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711725561.2553 |
REQUEST_TIME | 1711725561 |
APP_DEBUG | true |
CMF_ROOT | /www/wwwroot/111/1111/template/ |
CMF_DATA | /www/wwwroot/111/1111/template/data/ |
APP_PATH | /www/wwwroot/111/1111/template/app/ |
WEB_ROOT | /www/wwwroot/111/1111/template/public/ |
HTMLPURIFIER_PREFIX | /www/wwwroot/111/1111/template/vendor/ezyang/htmlpurifier/library |