作者 lyh

gx

... ... @@ -156,7 +156,7 @@ class BTemplateController extends BaseController
}
/**
* @remark :保存数据
* @remark :保存详情页模板数据
* @name :saveDetail
* @author :lyh
* @method :post
... ...
... ... @@ -35,7 +35,7 @@ class DomainInfoLogic extends BaseLogic
{
$domain = parse_url($this->param['domain'], PHP_URL_HOST);
if(!empty($domain)){
$this->param['domain'] = $domain['host'];
$this->param['domain'] = trim($domain['host']);
}
//验证域名
$this->verifyDomain($this->param['domain'],isset($this->param['id']) ?? '');
... ...
... ... @@ -165,6 +165,7 @@ class BTemplateLogic extends BaseLogic
if ($source == 2) {if ($source_id != 0) {$type = 2;} else {$type = 3;}}
if ($source == 3) {if ($source_id != 0) {$type = 4;} else {$type = 5;}}
if ($source == 4) {if ($source_id != 0) {$type = 6;} else {$type = 7;}}
if ($source == 5) {$type = 8;}
//查询有没有公共模板详情样式
$bTemplateMainModel = new BTemplateMain();
$mainInfo = $bTemplateMainModel->read(['project_id'=>$this->user['project_id'],'type'=>$type]);
... ...