作者 lyh

gx

@@ -966,6 +966,11 @@ class BTemplateLogic extends BaseLogic @@ -966,6 +966,11 @@ class BTemplateLogic extends BaseLogic
966 */ 966 */
967 public function replaceHtml(){ 967 public function replaceHtml(){
968 //查询当前所有装修的 968 //查询当前所有装修的
969 - $this->model->list(['']); 969 + $condition = ['source'=>$this->param['type'],'is_custom'=>$this->param['is_custom'],'is_list'=>$this->param['is_list'],
  970 + 'template_id'=>$this->param['template_id']];
  971 + $list = $this->model->list($condition);
  972 + foreach ($list as $v){
  973 + $main_html = str_replace($this->param['old_html'],$this->param['html'],$v['main_html']);
  974 + }
970 } 975 }
971 } 976 }