tujidelv 3 ani în urmă
părinte
comite
ca188aa978

+ 4 - 2
src/main/java/top/lvzhiqiang/service/impl/BgServiceImpl.java

@@ -779,10 +779,12 @@ public class BgServiceImpl implements BgService {
         }
         fileName = fileName.concat(".jpg");
 
-        saveFile(response.bodyStream(), machiPath.concat("码池/").concat(fileName));
+        String machiImgUrl = "码池/".concat(fileName);
+
+        saveFile(response.bodyStream(), machiPath.concat(machiImgUrl));
         long end = System.currentTimeMillis();
 
-        videoInfoPool.setImgUrl(fileName);
+        videoInfoPool.setImgUrl(machiImgUrl);
 
         videoInfoPool.setCreateTime(LocalDateTime.now());
         videoInfoPool.setType(1);