TemplateReplaceHtml.php
1017 字节
<?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';
/**
* @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],
];
}
}