db('browse')->insert($browse);
if(config('sys.site_guide') == 1 && request()->url() == "/") {
return $this->fetch($this->tpl_file.'index_default.html');
}
if (!session('sys_areainfo') && config('sys.indexhtml')) {
$indexstr = "./index.html";
if (file_exists($indexstr)) {
if ((date('d',filemtime($indexstr)) != date('d', time())) && (config('sys.indexhtml_time') < date('H:i:s',time()))) {
unlink($indexstr);
}else{
return $this->fetch($indexstr);
exit();
}
}
if (config('sys.indexhtml')) {
$tpl_file = './template/'.config('sys.theme_style').'/index/';
$info = $this->buildHtml("index", "./", $tpl_file.'index_index.html');
}