TemplateReplaceHtml.php
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* @remark :
* @name :TemplateReplaceHtml.php
* @author :lyh
* @method :post
* @time :2024/5/8 9:05
*/
namespace App\Models\Template;
use App\Models\Base;
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],
];
}
}