|
@@ -248,6 +248,9 @@ func (s *Short) Article(stype, id string) error {
|
|
|
obj = Filter(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 {
|
|
|
obj = map[string]interface{}{
|
|
|
"title": obj["title"],
|
|
@@ -324,7 +327,7 @@ func NoLoginArticle(stype, sid string) map[string]interface{} {
|
|
|
obj["buyertel"] = ""
|
|
|
}
|
|
|
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["buyerTitle"] = obj["buyer"]
|
|
@@ -333,7 +336,6 @@ func NoLoginArticle(stype, sid string) map[string]interface{} {
|
|
|
obj = Filter(obj)
|
|
|
redis.Put("other", catchKey, obj, 60*60*2)
|
|
|
}
|
|
|
- fmt.Println("11111", obj)
|
|
|
return obj
|
|
|
}
|
|
|
|