|
@@ -249,12 +249,21 @@ func UpdateYanxuanSpecialResourceData(sourceId int) {
|
|
|
err = errors.New("GetCygxReportSelectionBySourceAndId, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
|
+ detail, e := cygx.GetYanxuanSpecialItemById(sourceId)
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("GetYanxuanSpecialFollowUserById, Err: " + e.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
publishDate := time.Now().Format(utils.FormatDateTime)
|
|
|
item := new(cygx.CygxResourceData)
|
|
|
item.SourceId = sourceId
|
|
|
item.Source = source
|
|
|
item.PublishDate = publishDate
|
|
|
item.CreateTime = time.Now()
|
|
|
+ item.SearchTitle = detail.Title
|
|
|
+ item.SearchContent = ""
|
|
|
+ item.SearchOrderTime = publishDate
|
|
|
if totalData == 0 {
|
|
|
_, e := cygx.AddCygxResourceData(item)
|
|
|
if e != nil {
|