Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop
正在显示
1 个修改的文件
包含
9 行增加
和
0 行删除
| @@ -40,6 +40,7 @@ class BTemplateLogLogic extends BaseLogic | @@ -40,6 +40,7 @@ class BTemplateLogLogic extends BaseLogic | ||
| 40 | } | 40 | } |
| 41 | $bTemplateModel = new BTemplate(); | 41 | $bTemplateModel = new BTemplate(); |
| 42 | if($info['template_id'] == 0){//定制项目 | 42 | if($info['template_id'] == 0){//定制项目 |
| 43 | + //TODO::还原头部+底部 | ||
| 43 | $bTemplateModel->edit(['html'=>$info['text']],['template_id'=>$info['template_id'],'source'=>$info['source'],'source_id'=>$info['source_id']]); | 44 | $bTemplateModel->edit(['html'=>$info['text']],['template_id'=>$info['template_id'],'source'=>$info['source'],'source_id'=>$info['source_id']]); |
| 44 | return $this->success(); | 45 | return $this->success(); |
| 45 | } | 46 | } |
| @@ -121,6 +122,7 @@ class BTemplateLogLogic extends BaseLogic | @@ -121,6 +122,7 @@ class BTemplateLogLogic extends BaseLogic | ||
| 121 | if($info === false){ | 122 | if($info === false){ |
| 122 | $this->fail('当前数据不存在,或已被删除'); | 123 | $this->fail('当前数据不存在,或已被删除'); |
| 123 | } | 124 | } |
| 125 | + if($this->user['is_customized'] != BTemplate::IS_VISUALIZATION){ | ||
| 124 | if(empty($info['other'])){ | 126 | if(empty($info['other'])){ |
| 125 | $footer_other = str_replace('<header','',characterTruncation($info['text'],'/<style id="globalsojs-footer">(.*?)<header/s')); | 127 | $footer_other = str_replace('<header','',characterTruncation($info['text'],'/<style id="globalsojs-footer">(.*?)<header/s')); |
| 126 | $info['other'] = preg_replace('/<style id="globalsojs-footer">(.*?)<\/style>/s', '', $footer_other); | 128 | $info['other'] = preg_replace('/<style id="globalsojs-footer">(.*?)<\/style>/s', '', $footer_other); |
| @@ -138,6 +140,13 @@ class BTemplateLogLogic extends BaseLogic | @@ -138,6 +140,13 @@ class BTemplateLogLogic extends BaseLogic | ||
| 138 | $html = $html.$v['values']; | 140 | $html = $html.$v['values']; |
| 139 | } | 141 | } |
| 140 | } | 142 | } |
| 143 | + }else{ | ||
| 144 | + $page_array = (array)$this->user['is_visualization']->page_array;//获取所有定制界面 | ||
| 145 | + if (in_array(1, $page_array)) {//首页是定制界面 | ||
| 146 | + $html = $info['text']; | ||
| 147 | + } | ||
| 148 | + } | ||
| 141 | return $this->success(['html'=>$html]); | 149 | return $this->success(['html'=>$html]); |
| 142 | } | 150 | } |
| 151 | + | ||
| 143 | } | 152 | } |
-
请 注册 或 登录 后发表评论