正在显示
3 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -156,7 +156,7 @@ class BTemplateController extends BaseController | @@ -156,7 +156,7 @@ class BTemplateController extends BaseController | ||
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | /** | 158 | /** |
| 159 | - * @remark :保存数据 | 159 | + * @remark :保存详情页模板数据 |
| 160 | * @name :saveDetail | 160 | * @name :saveDetail |
| 161 | * @author :lyh | 161 | * @author :lyh |
| 162 | * @method :post | 162 | * @method :post |
| @@ -35,7 +35,7 @@ class DomainInfoLogic extends BaseLogic | @@ -35,7 +35,7 @@ class DomainInfoLogic extends BaseLogic | ||
| 35 | { | 35 | { |
| 36 | $domain = parse_url($this->param['domain'], PHP_URL_HOST); | 36 | $domain = parse_url($this->param['domain'], PHP_URL_HOST); |
| 37 | if(!empty($domain)){ | 37 | if(!empty($domain)){ |
| 38 | - $this->param['domain'] = $domain['host']; | 38 | + $this->param['domain'] = trim($domain['host']); |
| 39 | } | 39 | } |
| 40 | //验证域名 | 40 | //验证域名 |
| 41 | $this->verifyDomain($this->param['domain'],isset($this->param['id']) ?? ''); | 41 | $this->verifyDomain($this->param['domain'],isset($this->param['id']) ?? ''); |
| @@ -165,6 +165,7 @@ class BTemplateLogic extends BaseLogic | @@ -165,6 +165,7 @@ class BTemplateLogic extends BaseLogic | ||
| 165 | if ($source == 2) {if ($source_id != 0) {$type = 2;} else {$type = 3;}} | 165 | if ($source == 2) {if ($source_id != 0) {$type = 2;} else {$type = 3;}} |
| 166 | if ($source == 3) {if ($source_id != 0) {$type = 4;} else {$type = 5;}} | 166 | if ($source == 3) {if ($source_id != 0) {$type = 4;} else {$type = 5;}} |
| 167 | if ($source == 4) {if ($source_id != 0) {$type = 6;} else {$type = 7;}} | 167 | if ($source == 4) {if ($source_id != 0) {$type = 6;} else {$type = 7;}} |
| 168 | + if ($source == 5) {$type = 8;} | ||
| 168 | //查询有没有公共模板详情样式 | 169 | //查询有没有公共模板详情样式 |
| 169 | $bTemplateMainModel = new BTemplateMain(); | 170 | $bTemplateMainModel = new BTemplateMain(); |
| 170 | $mainInfo = $bTemplateMainModel->read(['project_id'=>$this->user['project_id'],'type'=>$type]); | 171 | $mainInfo = $bTemplateMainModel->read(['project_id'=>$this->user['project_id'],'type'=>$type]); |
-
请 注册 或 登录 后发表评论