feat: 产品

refactor: 产品详情页seo
This commit is contained in:
2025-04-24 10:21:45 +08:00
parent 49c865bf85
commit e2265629f9
43 changed files with 592 additions and 63 deletions

View File

@@ -17,6 +17,9 @@ abstract class Common extends BaseController
// 当前语言id
protected $lang_id = 1;
// 网站配置中的基本配置项
protected $basic_config = [];
/**
* 控制器初始化
* @access public
@@ -49,6 +52,7 @@ abstract class Common extends BaseController
// 获取系统配置
$configs = $this->getSysConfig($this->lang_id, ['basic', 'contact', 'media']);
$this->basic_config = $configs['basic'];
// 输出系统配置
View::assign('basic_config', $configs['basic']);
View::assign('contact_config', $configs['contact']);