Browse Source

Merge branch 'dev/v4.8.30_zxl' of qmx/jy into feature/v4.8.30

zhangxinlei1996 2 years ago
parent
commit
cc5031a0e4
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/jfw/modules/app/src/app/front/shorturl.go

+ 4 - 2
src/jfw/modules/app/src/app/front/shorturl.go

@@ -248,6 +248,9 @@ func (s *Short) Article(stype, id string) error {
 				obj = Filter(obj)
 				obj = Filter(obj)
 				obj["description"] = fmt.Sprintf("%s,%s。", obj["title"], baseInfo(obj))
 				obj["description"] = fmt.Sprintf("%s,%s。", obj["title"], baseInfo(obj))
 			}
 			}
+			if obj["l_publishtime"] != nil {
+				obj["publishtimeShorDate"] = time.Unix(util.Int64All(obj["l_publishtime"]), 0).Format(date.Date_Short_Layout)
+			}
 		} else {
 		} else {
 			obj = map[string]interface{}{
 			obj = map[string]interface{}{
 				"title":   obj["title"],
 				"title":   obj["title"],
@@ -324,7 +327,7 @@ func NoLoginArticle(stype, sid string) map[string]interface{} {
 			obj["buyertel"] = ""
 			obj["buyertel"] = ""
 		}
 		}
 		if obj["l_publishtime"] != nil {
 		if obj["l_publishtime"] != nil {
-			obj["publishtimeShorDate"] = time.Unix(util.Int64All(obj["publishtime"]), 0).Format(date.Date_Short_Layout)
+			obj["publishtimeShorDate"] = time.Unix(util.Int64All(obj["l_publishtime"]), 0).Format(date.Date_Short_Layout)
 		}
 		}
 		obj["winnerTitle"] = obj["winner"]
 		obj["winnerTitle"] = obj["winner"]
 		obj["buyerTitle"] = obj["buyer"]
 		obj["buyerTitle"] = obj["buyer"]
@@ -333,7 +336,6 @@ func NoLoginArticle(stype, sid string) map[string]interface{} {
 		obj = Filter(obj)
 		obj = Filter(obj)
 		redis.Put("other", catchKey, obj, 60*60*2)
 		redis.Put("other", catchKey, obj, 60*60*2)
 	}
 	}
-	fmt.Println("11111", obj)
 	return obj
 	return obj
 }
 }