//$home_rote[''.$v['catdir'].'-:catId/:id'] = 'home/'.$v['catdir'].'/index';
$cate = Db::name('cate')->field('id,catdir,moduleid')->where('id',$v['catid'])->find();
$moduleurl = Db::name('module')->where('id',$cate['moduleid'])->value('name');
if($cate['catdir']){
$url = url(request()->module().'/'.$cate['catdir'].'/info', ['catId'=>$cate['id'],'id'=>$v['id']]);
}else{
$url = url(request()->module().'/'.$moduleurl.'/info', ['catId'=>$cate['id'],'id'=>$v['id']] );
}
}
return $url;
}
//获取所有模版
function getTemplate(){
//查找设置的模版
$system = Db::name('system')->where('id',1)->find();
$path = './template/home/'.$system['template'].'/'.$system['html'].'/';
$tpl['list'] = get_file_folder_List($path , 2, '*_list*');
$tpl['show'] = get_file_folder_List($path , 2, '*_show*');
_d_id | 83ab02355bf579516109117393e68d |
PHPSESSID | jotp6tgrju1a44ddovv9pdbf49 |
USER | www |
HOME | /home/www |
HTTP_COOKIE | _d_id=83ab02355bf579516109117393e68d; PHPSESSID=jotp6tgrju1a44ddovv9pdbf49 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.liangchenghui.cn |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.liangchenghui.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 10.206.16.16 |
REMOTE_PORT | 37596 |
REMOTE_ADDR | 45.39.65.162 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www.liangchenghui.cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /WaterSafety-9/www.liangchenghui.cn |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/WaterSafety-9/www.liangchenghui.cn |
SCRIPT_FILENAME | /www/wwwroot/www.liangchenghui.cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1732863768.6093 |
REQUEST_TIME | 1732863768 |
ADDON_PATH | /www/wwwroot/www.liangchenghui.cn/addons/ |