|
@@ -131,8 +131,6 @@ func SyncTacticsList() (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
//同步策略文章
|
|
|
func SyncCygxArticleList() (err error) {
|
|
|
defer func() {
|
|
@@ -142,8 +140,8 @@ func SyncCygxArticleList() (err error) {
|
|
|
}()
|
|
|
fmt.Println("同步数据")
|
|
|
indexName := utils.IndexName
|
|
|
- fmt.Println("indexName:",indexName)
|
|
|
- time.Sleep(5*time.Second)
|
|
|
+ fmt.Println("indexName:", indexName)
|
|
|
+ time.Sleep(5 * time.Second)
|
|
|
list, err := models.GetCygxArticleListAll()
|
|
|
if err != nil {
|
|
|
fmt.Println("GetTacticsList Err:", err.Error())
|
|
@@ -209,7 +207,9 @@ func BodyAnalysis(body string) (expertNumStr, expertContentStr, interviewDateStr
|
|
|
if rightIndex == 0 {
|
|
|
rightIndex = strings.Index(expertContent, ")")
|
|
|
}
|
|
|
- if len(expertContent)>=rightIndex {
|
|
|
+ fmt.Println("rightIndex:", rightIndex)
|
|
|
+ fmt.Println("expertContent", len(expertContent))
|
|
|
+ if len(expertContent) >= rightIndex {
|
|
|
expertNum := expertContent[:rightIndex]
|
|
|
expertNum = strings.Replace(expertNum, "(", "", -1)
|
|
|
expertNum = strings.Replace(expertNum, "(", "", -1)
|