|
...
|
...
|
@@ -16,4 +16,24 @@ class TemplateReplaceHtml extends Base |
|
|
|
protected $table = 'gl_replace_html';
|
|
|
|
//连接数据库
|
|
|
|
protected $connection = 'custom_mysql';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :默认类型
|
|
|
|
* @name :sourceType
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/5/9 17:07
|
|
|
|
*/
|
|
|
|
public function sourceType(){
|
|
|
|
return [
|
|
|
|
'首页'=>['type'=>1,'is_list'=>0,'is_custom'=>0],
|
|
|
|
'产品详情'=>['type'=>2,'is_list'=>0,'is_custom'=>0],
|
|
|
|
'产品列表'=>['type'=>2,'is_list'=>1,'is_custom'=>0],
|
|
|
|
'新闻详情'=>['type'=>4,'is_list'=>0,'is_custom'=>0],
|
|
|
|
'新闻列表'=>['type'=>4,'is_list'=>1,'is_custom'=>0],
|
|
|
|
'博客详情'=>['type'=>3,'is_list'=>0,'is_custom'=>0],
|
|
|
|
'博客列表'=>['type'=>3,'is_list'=>1,'is_custom'=>0],
|
|
|
|
'单页面'=>['type'=>9,'is_list'=>0,'is_custom'=>0],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|