Commit 7fe0cab4 by 徐高华

Merge branch 'xgh_内容中台' into 'developer'

上传

See merge request !447
parents 740e5423 e1e0b1da
......@@ -91,7 +91,11 @@ public class UploadController extends WebBaseController {
EnterpriseDTO enterprise = this.enterpriseService.getEnterpriseById(enterpriseId) ;
File file = File.createTempFile("tmp", null);
mf.transferTo(file);
CloudFileInfo uploadInfo = CloudFileUtil.uploadTempFile(file, fileName, type, enterprise.getFactoryCode(), CloudFileBusinessOptEnum.COMMON, 7*24L) ;
String factoryCode = "";
if(null != enterprise) {
factoryCode= enterprise.getFactoryCode() ;
}
CloudFileInfo uploadInfo = CloudFileUtil.uploadTempFile(file, fileName, type, factoryCode , CloudFileBusinessOptEnum.COMMON, 7*24L) ;
if (uploadInfo != null) {
map.put("qcloudImageUrl", uploadInfo.getOrgFileUrl());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment