Sfoglia il codice sorgente

1.增加oss图片压缩参数。

tomatozq 5 anni fa
parent
commit
fce4512fd0

+ 1 - 1
picc-admin-server/src/main/java/com/jpsoft/picc/modules/base/controller/AttachmentController.java

@@ -197,7 +197,7 @@ public class AttachmentController {
                         String ext = url.substring(url.lastIndexOf("."));
 
                         Map<String,String> map = new HashMap<>();
-                        map.put("fileUrl",url);
+                        map.put("fileUrl",url + "?x-oss-process=image/resize,l_1024,limit_1");
                         map.put("fileName", member.getCardNo() + "-" + (i+1) + ext);
 
                         fileList.add(map);