if(!config("app.{$default_module}_config.is_diy_temp")){
return false;
}
$template = config("app.{$default_module}_config.template_pc");
if(request()->isMobile()){
$template = config("app.{$default_module}_config.template_wap");
}
if(!$default_module || !$template)
return false;
$data = include Env::get('root_path') . 'public' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $default_module.".".$template.'.'.$this->lang.".php";
foreach ($data as $key => $val){
$this->assign($key, $val);
}
}
public function setSeoInfo($param){
if(!empty($param['title'])){
$str = config("web_site_title");
config("web_site_title",$param['title']."-".$str);
think_var | about |
PHPSESSID | 85qjkehed2cse5aqorii2jtf65 |
jiu97_home___jump_url__ | /cms/document/detail/id/1605.html |
USER | www |
HOME | /home/www |
HTTP_COOKIE | think_var=about; PHPSESSID=85qjkehed2cse5aqorii2jtf65; jiu97_home___jump_url__=%2Fcms%2Fdocument%2Fdetail%2Fid%2F1605.html |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.xcfskj.com |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.xcfskj.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.20.28.181 |
REMOTE_PORT | 50398 |
REMOTE_ADDR | 50.2.185.58 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/xcfskj.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /cms/document/detail/id/1440.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/cms/document/detail/id/1440.html |
SCRIPT_FILENAME | /www/wwwroot/xcfskj.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1730683838.3352 |
REQUEST_TIME | 1730683838 |
ADMIN_FILE | admin.php |
FILTER_VALIDATE_BOOL | 258 |
HTMLPURIFIER_PREFIX | /www/wwwroot/xcfskj.com/vendor/ezyang/htmlpurifier/library |
QINIU_FUNCTIONS_VERSION | 7.4.1 |
PUBLIC_PATH | / |