正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -105,7 +105,7 @@ class BTemplateLogic extends BaseLogic | @@ -105,7 +105,7 @@ class BTemplateLogic extends BaseLogic | ||
| 105 | $TemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']]); | 105 | $TemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']]); |
| 106 | }else{ | 106 | }else{ |
| 107 | $commonTemplateModel = new BTemplateCommon(); | 107 | $commonTemplateModel = new BTemplateCommon(); |
| 108 | - $commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id']]); | 108 | + $commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id'],'type'=>$source]); |
| 109 | if($commonInfo !== false){ | 109 | if($commonInfo !== false){ |
| 110 | $TemplateInfo['html'] = $commonInfo['head_css'].$TemplateInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other']. | 110 | $TemplateInfo['html'] = $commonInfo['head_css'].$TemplateInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other']. |
| 111 | $commonInfo['head_html'].$TemplateInfo['main_html'].$commonInfo['footer_html']; | 111 | $commonInfo['head_html'].$TemplateInfo['main_html'].$commonInfo['footer_html']; |
| @@ -142,7 +142,7 @@ class BTemplateLogic extends BaseLogic | @@ -142,7 +142,7 @@ class BTemplateLogic extends BaseLogic | ||
| 142 | } | 142 | } |
| 143 | //兼容老数据 | 143 | //兼容老数据 |
| 144 | $commonTemplateModel = new BTemplateCommon(); | 144 | $commonTemplateModel = new BTemplateCommon(); |
| 145 | - $commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id']]); | 145 | + $commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id'],'type'=>1]); |
| 146 | if($commonInfo !== false){ | 146 | if($commonInfo !== false){ |
| 147 | $html = $commonInfo['head_css'].$main_style.$commonInfo['footer_css'].$commonInfo['other']. | 147 | $html = $commonInfo['head_css'].$main_style.$commonInfo['footer_css'].$commonInfo['other']. |
| 148 | $commonInfo['head_html'].$main_html.$commonInfo['footer_html']; | 148 | $commonInfo['head_html'].$main_html.$commonInfo['footer_html']; |
-
请 注册 或 登录 后发表评论