Browse Source

fix: 搜索纪要-时间格式

hsun 2 years ago
parent
commit
1055e108f2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controllers/search.go

+ 1 - 0
controllers/search.go

@@ -450,6 +450,7 @@ func (this *SearchController) ListHomeArtAndChart() {
 				result[k].ImgUrlPc = mapCategoryUrl[v.CategoryId]
 				result[k].ImgUrlPc = mapCategoryUrl[v.CategoryId]
 			}
 			}
 			result[k].Source = 1
 			result[k].Source = 1
+			result[k].PublishDate = utils.StrTimeToTime(result[k].PublishDate).Format(utils.FormatDate)
 		}
 		}
 	}
 	}
 	// ListType   query   int  true       "列表类型,1最新/全部,2 纪要 ,3图表 默认1"
 	// ListType   query   int  true       "列表类型,1最新/全部,2 纪要 ,3图表 默认1"