$detail['url'] = '/pages/';
}
if($detail['url'] && isHeaderHttp($detail['url'])){//外链
$detail['url'] = $detail['url'];
}else{//站内链接
if($detail['url'] && !preg_match('/^\//',$detail['url'])){
$detail['url'] = '/'.$detail['url'];
}
$pidInfo = Db::name(self::dbTable())->where(['id'=>$detail['pid']])->field('id,title,url')->find();
if(!$pidInfo){
$pidInfo = $detail;
}
$pid = $pidInfo['id'];
if ( $curUrl==$pidInfo['url'] && !in_array($curUrl,self::specUrlArr())){
if($pid==0 && $detail['url']!='/pages/'){
$detail['url'] = $detail['url'];
PHPSESSID | r3ivn1ksdd0ldeit561aajgf4c |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=r3ivn1ksdd0ldeit561aajgf4c |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.zc-hightech.com |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.zc-hightech.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.18.111.6 |
REMOTE_PORT | 51364 |
REMOTE_ADDR | 107.158.145.202 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www.zc-hightech.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /news/20/91.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/news/20/91.html |
SCRIPT_FILENAME | /www/wwwroot/www.zc-hightech.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1726661892.0365 |
REQUEST_TIME | 1726661892 |
TEMP_HTML_PATH | ./html/ |
PINYIN_DEFAULT | 4096 |
PINYIN_TONE | 2 |
PINYIN_NO_TONE | 4 |
PINYIN_ASCII_TONE | 8 |
PINYIN_NAME | 16 |
PINYIN_KEEP_NUMBER | 32 |
PINYIN_KEEP_ENGLISH | 64 |
PINYIN_UMLAUT_V | 128 |
PINYIN_KEEP_PUNCTUATION | 256 |