Browse Source

美术阅卷10月新增需求-图片加上随机数

wangliang 5 years ago
parent
commit
eb33c9f36c

+ 4 - 4
stmms-ms-commons/src/main/java/cn/com/qmth/stmms/ms/commons/config/SystemConfig.java

@@ -85,22 +85,22 @@ public class SystemConfig {
 
     public String getThumbUrl(Long workId, Integer subjectId, Long studentId, Integer imageType) {
         return imageServerConfig.getImageServer() + path + workId + "/"
-                + subjectId + "/" + studentId + "/" + imageType;
+                + subjectId + "/" + studentId + "/" + imageType + "?random=" + UUID.randomUUID().toString();
     }
 
     public String getImageUrl(Long workId, Integer subjectId, Long studentId, Integer imageType) {
         return imageServerConfig.getImageServer() + path + workId + "/"
-                + subjectId + "/" + studentId + "/" + imageType;
+                + subjectId + "/" + studentId + "/" + imageType + "?random=" + UUID.randomUUID().toString();
     }
 
     public String getSheetUrl(Long workId, Integer subjectId, Long studentId, Integer imageType) {
         return imageServerConfig.getImageServer() + path + workId + "/"
-                + subjectId + "/" + studentId + "/" + imageType;
+                + subjectId + "/" + studentId + "/" + imageType + "?random=" + UUID.randomUUID().toString();
     }
 
     public String getWaterMarkUrl(Long workId, Integer subjectId, Long studentId, Integer imageType) {
         return imageServerConfig.getImageServer() + path + workId + "/"
-                + subjectId + "/" + studentId + "/" + imageType;
+                + subjectId + "/" + studentId + "/" + imageType + "?random=" + UUID.randomUUID().toString();
     }
 
     public String getSheetDir() {