TemplateReplaceHtml.php
1.2 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
40
41
42
<?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';
const STATUS = 0;
const STATUS_START = 1;
const STATUS_END = 2;
/**
* @remark :默认类型
* @name :sourceType
* @author :lyh
* @method :post
* @time :2024/5/9 17:07
*/
public function sourceType(){
return [
'所有页面'=>['source'=>0,'is_list'=>0,'is_custom'=>0],
'首页'=>['source'=>1,'is_list'=>0,'is_custom'=>0],
'产品详情'=>['source'=>2,'is_list'=>0,'is_custom'=>0],
'产品列表'=>['source'=>2,'is_list'=>1,'is_custom'=>0],
'新闻详情'=>['source'=>4,'is_list'=>0,'is_custom'=>0],
'新闻列表'=>['source'=>4,'is_list'=>1,'is_custom'=>0],
'博客详情'=>['source'=>3,'is_list'=>0,'is_custom'=>0],
'博客列表'=>['source'=>3,'is_list'=>1,'is_custom'=>0],
'单页面'=>['source'=>9,'is_list'=>0,'is_custom'=>0],
];
}
}