|
@@ -633,10 +633,6 @@ func Deletenewchart(chartIdsDelete []int) (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-//func init() {
|
|
|
-// UpdateArticleResourceData(9050)
|
|
|
-//}
|
|
|
-
|
|
|
// 更新文章
|
|
|
func UpdateArticleResourceData(sourceId int) {
|
|
|
time.Sleep(1 * time.Second)
|
|
@@ -726,6 +722,9 @@ func UpdateArticleResourceData(sourceId int) {
|
|
|
item.PublishDate = publishDate
|
|
|
item.CreateTime = time.Now()
|
|
|
item.SearchTitle = detail.Title
|
|
|
+ if detail.SeriesName == "行业深度" || detail.SeriesName == "季度策略" {
|
|
|
+ item.Sort = 100 // 这两个类型优先展示
|
|
|
+ }
|
|
|
annotation, e := utils.GetHtmlContentText(detail.Annotation)
|
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
err = errors.New("GetHtmlContentText, Err: " + e.Error() + "sourceId:" + strconv.Itoa(sourceId))
|