소스 검색

update thumbnailUrl format

reghao 3 년 전
부모
커밋
abe74ee407
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/cn/reghao/dfs/store/service/media/ImageFileService.java

+ 1 - 1
src/main/java/cn/reghao/dfs/store/service/media/ImageFileService.java

@@ -50,7 +50,7 @@ public class ImageFileService {
         ImageFile imageFile = new ImageFile(imageFileId, fileId, horizontal, width, height, url);
         imageFileMapper.save(imageFile);
 
-        String thumbnailUrl = String.format("%s@%s\\w_%s\\h", url, resolution.getWidth(), resolution.getHeight());
+        String thumbnailUrl = String.format("%s@%sw_%sh", url, resolution.getWidth(), resolution.getHeight());
         return new ImageFileRet(uploadedFile.getUploadId(), imageFileId, thumbnailUrl, url);
     }