rdluck 4 年之前
父节点
当前提交
24e1381cd8
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      services/tactics.go

+ 1 - 3
services/tactics.go

@@ -207,9 +207,7 @@ func BodyAnalysis(body string) (expertNumStr, expertContentStr, interviewDateStr
 				if rightIndex == 0 {
 					rightIndex = strings.Index(expertContent, ")")
 				}
-				fmt.Println("rightIndex:", rightIndex)
-				fmt.Println("expertContent", len(expertContent))
-				if len(expertContent) >= rightIndex {
+				if rightIndex > 0 {
 					expertNum := expertContent[:rightIndex]
 					expertNum = strings.Replace(expertNum, "(", "", -1)
 					expertNum = strings.Replace(expertNum, "(", "", -1)