|
...
|
...
|
@@ -46,10 +46,10 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function customTemplateInfo(){
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']]);
|
|
|
|
$info['image'] = getImageUrl($info['image'],$this->user['storage_type'],$this->user['project_location']);
|
|
|
|
if($info === false){
|
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
|
|
|
$info['image'] = getImageUrl($info['image'],$this->user['storage_type'],$this->user['project_location']);
|
|
|
|
if($info['is_visualization'] == 0 || $info['is_visualization'] == 1){
|
|
|
|
$template_id = $this->getTemplateId();
|
|
|
|
$html = $this->getTemplateComHtml($info['html'],$info['html_style'],$template_id);
|
...
|
...
|
|