ziwen 2 жил өмнө
parent
commit
7c6f7f506c

+ 15 - 1
services/cygx_research_summary.go

@@ -148,6 +148,8 @@ func CygxResearchSummary(cont context.Context) (err error) {
 			annotation = strings.ReplaceAll(annotation, "<li>", "<p>")
 			annotation = strings.ReplaceAll(annotation, "<li>", "<p>")
 			re, _ := regexp.Compile("<strong.*?>")
 			re, _ := regexp.Compile("<strong.*?>")
 			annotation = re.ReplaceAllString(annotation, "")
 			annotation = re.ReplaceAllString(annotation, "")
+			reLi, _ := regexp.Compile("<li.*?>")
+			annotation = reLi.ReplaceAllString(annotation, "")
 			logItem := data_manage.CygxResearchSummaryLog{
 			logItem := data_manage.CygxResearchSummaryLog{
 				ArticleId:         int(articleId),
 				ArticleId:         int(articleId),
 				Type:              "SDBG",
 				Type:              "SDBG",
@@ -254,6 +256,8 @@ func CygxResearchSummary(cont context.Context) (err error) {
 			annotation = strings.ReplaceAll(annotation, "<li>", "<p>")
 			annotation = strings.ReplaceAll(annotation, "<li>", "<p>")
 			re, _ := regexp.Compile("<strong.*?>")
 			re, _ := regexp.Compile("<strong.*?>")
 			annotation = re.ReplaceAllString(annotation, "")
 			annotation = re.ReplaceAllString(annotation, "")
+			reLi, _ := regexp.Compile("<li.*?>")
+			annotation = reLi.ReplaceAllString(annotation, "")
 			logItem := data_manage.CygxResearchSummaryLog{
 			logItem := data_manage.CygxResearchSummaryLog{
 				ArticleId:         int(articleId),
 				ArticleId:         int(articleId),
 				Type:              "CYDYJY",
 				Type:              "CYDYJY",
@@ -361,6 +365,8 @@ func CygxResearchSummary(cont context.Context) (err error) {
 			annotation = strings.ReplaceAll(annotation, "<li>", "<p>")
 			annotation = strings.ReplaceAll(annotation, "<li>", "<p>")
 			re, _ := regexp.Compile("<strong.*?>")
 			re, _ := regexp.Compile("<strong.*?>")
 			annotation = re.ReplaceAllString(annotation, "")
 			annotation = re.ReplaceAllString(annotation, "")
+			reLi, _ := regexp.Compile("<li.*?>")
+			annotation = reLi.ReplaceAllString(annotation, "")
 			logItem := data_manage.CygxResearchSummaryLog{
 			logItem := data_manage.CygxResearchSummaryLog{
 				ArticleId:         int(articleId),
 				ArticleId:         int(articleId),
 				Type:              "SSGS",
 				Type:              "SSGS",
@@ -454,6 +460,8 @@ func CygxResearchSummary(cont context.Context) (err error) {
 			body = strings.ReplaceAll(body, "<li>", "<p>")
 			body = strings.ReplaceAll(body, "<li>", "<p>")
 			re, _ := regexp.Compile("<strong.*?>")
 			re, _ := regexp.Compile("<strong.*?>")
 			body = re.ReplaceAllString(body, "")
 			body = re.ReplaceAllString(body, "")
+			reLi, _ := regexp.Compile("<li.*?>")
+			body = reLi.ReplaceAllString(body, "")
 			//研选的公司需要单独处理
 			//研选的公司需要单独处理
 			//sliceSubjects := strings.Split(article.Stock, "/")
 			//sliceSubjects := strings.Split(article.Stock, "/")
 			var company string
 			var company string
@@ -655,6 +663,8 @@ func CygxLastWeekSummary(cont context.Context) (err error) {
 			annotation = strings.ReplaceAll(annotation, "<li>", "<p>")
 			annotation = strings.ReplaceAll(annotation, "<li>", "<p>")
 			re, _ := regexp.Compile("<strong.*?>")
 			re, _ := regexp.Compile("<strong.*?>")
 			annotation = re.ReplaceAllString(annotation, "")
 			annotation = re.ReplaceAllString(annotation, "")
+			reLi, _ := regexp.Compile("<li.*?>")
+			annotation = reLi.ReplaceAllString(annotation, "")
 			logItem := data_manage.CygxMinutesSummaryLog{
 			logItem := data_manage.CygxMinutesSummaryLog{
 				ArticleId:         int(articleId),
 				ArticleId:         int(articleId),
 				Type:              "CYDYJY",
 				Type:              "CYDYJY",
@@ -762,6 +772,8 @@ func CygxLastWeekSummary(cont context.Context) (err error) {
 			annotation = strings.ReplaceAll(annotation, "<li>", "<p>")
 			annotation = strings.ReplaceAll(annotation, "<li>", "<p>")
 			re, _ := regexp.Compile("<strong.*?>")
 			re, _ := regexp.Compile("<strong.*?>")
 			annotation = re.ReplaceAllString(annotation, "")
 			annotation = re.ReplaceAllString(annotation, "")
+			reLi, _ := regexp.Compile("<li.*?>")
+			annotation = reLi.ReplaceAllString(annotation, "")
 			logItem := data_manage.CygxMinutesSummaryLog{
 			logItem := data_manage.CygxMinutesSummaryLog{
 				ArticleId:         int(articleId),
 				ArticleId:         int(articleId),
 				Type:              "SSGS",
 				Type:              "SSGS",
@@ -856,6 +868,8 @@ func CygxLastWeekSummary(cont context.Context) (err error) {
 			body = strings.ReplaceAll(body, "<li>", "<p>")
 			body = strings.ReplaceAll(body, "<li>", "<p>")
 			re, _ := regexp.Compile("<strong.*?>")
 			re, _ := regexp.Compile("<strong.*?>")
 			body = re.ReplaceAllString(body, "")
 			body = re.ReplaceAllString(body, "")
+			reLi, _ := regexp.Compile("<li.*?>")
+			body = reLi.ReplaceAllString(body, "")
 			//研选的公司需要单独处理
 			//研选的公司需要单独处理
 			//sliceSubjects := strings.Split(article.Stock, "/")
 			//sliceSubjects := strings.Split(article.Stock, "/")
 			var company string
 			var company string
@@ -920,4 +934,4 @@ func CygxLastWeekSummary(cont context.Context) (err error) {
 	}
 	}
 
 
 	return
 	return
-}
+}