tujidelv 3 年之前
父節點
當前提交
ca188aa978
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/main/java/top/lvzhiqiang/service/impl/BgServiceImpl.java

+ 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);