tujidelv 2 년 전
부모
커밋
19d64b34dc
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/top/lvzhiqiang/service/impl/BgServiceImpl.java

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

@@ -955,7 +955,7 @@ public class BgServiceImpl implements BgService {
         long start = System.currentTimeMillis();
         Connection.Response response = Jsoup.connect(href).method(Connection.Method.GET).ignoreContentType(true).timeout(50 * 1000).execute();
 
-        String fileName = issueDate.concat(" ").concat(h3);
+        String fileName = issueDate.concat(" ").concat(h3).replace("?", "?");
         byte[] imgUrlBytes = fileName.getBytes(StandardCharsets.UTF_8);
         if (imgUrlBytes.length > 251) {
             byte[] imgUrlDestBytes = new byte[251];
@@ -1128,7 +1128,7 @@ public class BgServiceImpl implements BgService {
         // 图片URL bigImage
         String qibingCover = qibings.concat("/cover/");
 
-        String fileName = issueDate.concat(" ").concat(h3);
+        String fileName = issueDate.concat(" ").concat(h3).replace("?", "?");
         byte[] imgUrlBytes = fileName.getBytes(StandardCharsets.UTF_8);
         if (imgUrlBytes.length > 251) {
             byte[] imgUrlDestBytes = new byte[251];