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