xingzai 1 år sedan
förälder
incheckning
cd2919bd49
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      services/es_comprehensive.go

+ 3 - 3
services/es_comprehensive.go

@@ -806,9 +806,9 @@ func GetResourceDataEsList(list []*SearchComprehensiveItem, user *models.WxUserI
 			if v.ProductInterior != nil && v.SourceId == vList.SourceId {
 				v.ProductInterior.Title = vList.Title
 			}
-			//if v.IndustrialResource != nil && v.SourceId == vList.SourceId {
-			//	v.IndustrialResource.UpdateTime = vList.PublishDate
-			//}
+			if v.IndustrialResource != nil && v.SourceId == vList.SourceId {
+				v.IndustrialResource.UpdateTime = strings.Replace(vList.PublishDate, "00:00:00", "", -1)
+			}
 			if v.SourceId == vList.SourceId && v.Source == vList.Source {
 				items = append(items, v)
 			}