瀏覽代碼

pdf下载链接由http改为https

xingzai 4 年之前
父節點
當前提交
829cdac647
共有 1 個文件被更改,包括 3 次插入0 次删除
  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)