|
...
|
...
|
@@ -27,6 +27,17 @@ class ReplaceHtmlLogic extends BaseLogic |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取模版id
|
|
|
|
* @name :getTemplateId
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/5/9 18:03
|
|
|
|
*/
|
|
|
|
public function getTemplateId(){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :替换可视化的html代码(按类型)
|
|
|
|
* @name :replaceHtml
|
|
|
|
* @author :lyh
|
|
...
|
...
|
@@ -35,6 +46,18 @@ class ReplaceHtmlLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function replaceHtml(){
|
|
|
|
ProjectServer::useProject($this->param['project_id']);
|
|
|
|
$data = $this->model->sourceType();
|
|
|
|
if(!isset($data[$this->param['name']])){
|
|
|
|
$this->fail('数据错误,请联系管理员');
|
|
|
|
}
|
|
|
|
$replaceHtmlData = [
|
|
|
|
'old_html'=>$this->param['old_html'],
|
|
|
|
'html'=>$this->param['html'],
|
|
|
|
'type'=>$data[$this->param['name']]['type'],
|
|
|
|
'is_list'=>$data[$this->param['name']]['is_list'],
|
|
|
|
'is_custom'=>$data[$this->param['name']]['is_custom'],
|
|
|
|
'template_id'=>1
|
|
|
|
];
|
|
|
|
//TODO::生成一条任务记录
|
|
|
|
$replaceId = $this->saveReplaceHtml($this->param);
|
|
|
|
//查询当前类型所有装修的记录
|
...
|
...
|
|