Преглед на файлове

预览增删改查代码提交

pans преди 8 месеца
родител
ревизия
d63232af16

+ 5 - 0
snowy-plugin/snowy-plugin-disk/snowy-plugin-disk-func/src/main/java/vip/xiaonuo/disk/service/impl/TranscodingServiceImpl.java

@@ -194,6 +194,11 @@ public class TranscodingServiceImpl implements TranscodingService {
                 log.error("格式转换:"+ex.getMessage());
                 return CommonResult.error("格式转换失败");
             }
+        }else{
+            ResourceFile newFile = new ResourceFile();
+            newFile.setFileId(fileBean.getFileId());
+            newFile.setPreviewFileUrl(fileBean.getFileUrl());
+            resourceFileMapper.updateById(newFile);
         }
         return CommonResult.ok("格式转换成功");
     }