作者 lyh

gx

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