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