Bladeren bron

fix:时间格式修改

duxin 2 jaren geleden
bovenliggende
commit
d9cc846042
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 2 2
      src/jfw/jyutil/classroomiInfo.go
  2. 1 1
      src/jfw/site/IndustryInfo/IndustryInfo.go

+ 2 - 2
src/jfw/jyutil/classroomiInfo.go

@@ -426,7 +426,7 @@ func ArticleRecommendation(t string, num int) map[string]interface{} {
 			tmpdate, _ := v["l_createdate"]
 			v["l_createdate"] = util.TimeDiff(time.Unix(util.Int64All(tmpdate), 0))
 			tmpdate1, _ := v["releasetime"]
-			v["releasetime"] = util.TimeDiff(time.Unix(util.Int64All(tmpdate1), 0))
+			//v["releasetime"] = util.TimeDiff(time.Unix(util.Int64All(tmpdate1), 0))
 			reltime := time.Unix(util.Int64All(tmpdate1), 0)
 			v["time"] = reltime.Format(Date_yyyyMMdd_Point) //首页展示
 			v["s_pic"] = SPic(util.InterfaceToStr(v["s_pic"]))
@@ -524,7 +524,7 @@ func GuidelineDetails(id string, keyWord ...string) []map[string]interface{} {
 			tmpdate, _ := v["l_createdate"]
 			v["l_createdate"] = util.TimeDiff(time.Unix(util.Int64All(tmpdate), 0))
 			tmpdate1, _ := v["releasetime"]
-			v["releasetime"] = util.TimeDiff(time.Unix(util.Int64All(tmpdate1), 0))
+			//v["releasetime"] = util.TimeDiff(time.Unix(util.Int64All(tmpdate1), 0))
 			reltime := time.Unix(util.Int64All(tmpdate1), 0)
 			v["time"] = reltime.Format(Date_yyyyMMdd_Point) //首页展示
 			v["s_pic"] = SPic(util.InterfaceToStr(v["s_pic"]))

+ 1 - 1
src/jfw/site/IndustryInfo/IndustryInfo.go

@@ -82,7 +82,7 @@ func NewIndustry(num int) *[]map[string]interface{} {
 			tmpdate, _ := v["l_createdate"]
 			v["l_createdate"] = util.TimeDiff(time.Unix(util.Int64All(tmpdate), 0))
 			tmpdate1, _ := v["releasetime"]
-			v["releasetime"] = util.TimeDiff(time.Unix(util.Int64All(tmpdate1), 0))
+			//v["releasetime"] = util.TimeDiff(time.Unix(util.Int64All(tmpdate1), 0))
 			reltime := time.Unix(util.Int64All(tmpdate1), 0)
 			v["time"] = reltime.Format(Date_yyyyMMdd_Point) //首页展示
 			v["s_pic"] = jyutil.SPic(util.InterfaceToStr(v["s_pic"]))