Sfoglia il codice sorgente

pdf下载链接由http改为https

xingzai 3 anni fa
parent
commit
829cdac647
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      services/tactics.go

+ 3 - 0
services/tactics.go

@@ -658,6 +658,9 @@ func BodyAnalysis2(body string) (expertNumStr, expertContentStr, interviewDateSt
 			}
 			body = strings.Replace(body, v, "", -1)
 		}
+		if !strings.HasPrefix(fileLink, "https") && len(fileLink) > 0 {
+			fileLink = "https" + fileLink[4:len(fileLink)]
+		}
 		body = strings.Replace(body, "完整报告请点击链接:", "", -1)
 		body = strings.Replace(body, "PDF格式报告下载.pdf", "", -1)
 		body = strings.Replace(body, "报告全文():", "", -1)