作者 lyh

gx

... ... @@ -107,9 +107,6 @@ class FileController
} else {
$size = $files->getSize();
$file_type = $files->getClientOriginalExtension();
if($files->getClientMimeType() != 'video/mp4'){
$this->response('上传格式错误');
}
return $this->single($files,$size,$file_type);
}
}
... ...
... ... @@ -66,8 +66,8 @@ class BTemplateLogic extends BaseLogic
//获取模板详情
$ATemplateModel = new Template();
$TemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']]);
$TemplateInfo['html'] = $this->getHeadFooter($TemplateInfo['html']);
}
$TemplateInfo['html'] = $this->getHeadFooter($TemplateInfo['html']);
}
return $this->success($TemplateInfo);
}
... ... @@ -145,7 +145,7 @@ class BTemplateLogic extends BaseLogic
//同步数据
$this->param['name'] = $TemplateInfo['name'];
$this->param['image'] = $TemplateInfo['image'];
$this->param['html'] = $this->getHeadFooter(characterTruncation($this->param['html'],'/<style id="vvvebjs-header">(.*?)<\/footer>/s'));
$this->param['html'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-header">(.*?)<\/footer>/s');
return true;
}
... ...