|
@@ -671,13 +671,13 @@ func BodyAnalysis2(body string) (expertNumStr, expertContentStr, interviewDateSt
|
|
|
expertContentStr = expertContentArr[0]
|
|
|
}
|
|
|
//当处理过之后的专家背景长度大于600的时候,说明他的格式跟之前的不一样,还要做二次处理 600 是一个约值,先运行看看
|
|
|
- if len(expertContentStr) > 600 {
|
|
|
- strnum := strings.Index(expertContentStr, "#专家评价:")
|
|
|
- content := expertContentStr[strnum:len(expertContentStr)]
|
|
|
- strnum2 := strings.Index(content, "(")
|
|
|
- content = content[strnum2+9 : len(content)] //中文括号3位 专家编号6位
|
|
|
- expertContentStr = content
|
|
|
- }
|
|
|
+ //if len(expertContentStr) > 600 {
|
|
|
+ // strnum := strings.Index(expertContentStr, "#专家评价:")
|
|
|
+ // content := expertContentStr[strnum:len(expertContentStr)]
|
|
|
+ // strnum2 := strings.Index(content, "(")
|
|
|
+ // content = content[strnum2+9 : len(content)] //中文括号3位 专家编号6位
|
|
|
+ // expertContentStr = content
|
|
|
+ //}
|
|
|
//if strings.Index(body, "报告全文(") > 0 && strings.Index(body, "PDF格式报告下载.pdf") > 0 {
|
|
|
// numStar := strings.Index(body, "http")
|
|
|
// numEnd := strings.Index(body, ".pdf")
|