$c_id = Db::name('cate')->where('pid',$mid)->order('sort asc')->value('id');if($c_id){$cid = $c_id;}}}}if(empty($cate)){$menu_data = Db::name('cate')->where('pid', 0)->where('id',$mid)->find();$cate = Db::name('cate')->where('pid', $menu_data['id'])->order('sort asc')->field('id,title,pid,sort,class,icon')->find();if(empty($cate)){header("Location:".$url);exit;}}$cate_class = $cate['class'];//[0=>'文字列表',1=>'图文列表',2=>'图册列表',3=>'图文详情',4=>'视频',5=>'外部链接']if(in_array($cate_class, [0,1,2,4,5])){if($cate_class==1||$cate_class==2){
| amp |
| USER | www |
| HOME | /home/www |
| HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| HTTP_ACCEPT | */* |
| HTTP_HOST | taocharm.com |
| PATH_INFO | |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | taocharm.com |
| SERVER_PORT | 443 |
| SERVER_ADDR | 103.178.56.131 |
| REMOTE_PORT | 11771 |
| REMOTE_ADDR | 216.73.216.0 |
| SERVER_SOFTWARE | nginx/1.24.0 |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTPS | on |
| REQUEST_SCHEME | https |
| SERVER_PROTOCOL | HTTP/2.0 |
| DOCUMENT_ROOT | /www/wwwroot/taocharm.com/public |
| DOCUMENT_URI | /index.php |
| REQUEST_URI | /index/index/lists& |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | s=/index/index/lists& |
| SCRIPT_FILENAME | /www/wwwroot/taocharm.com/public/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1775326800.2392 |
| REQUEST_TIME | 1775326800 |
| ADMIN_FILE | admin.php |
| FILTER_VALIDATE_BOOL | 258 |
| HTMLPURIFIER_PREFIX | /www/wwwroot/taocharm.com/vendor/ezyang/htmlpurifier/library |
| PUBLIC_PATH | / |