|
@@ -16,6 +16,7 @@ import (
|
|
|
"app.yhyue.com/moapp/jypkg/public"
|
|
|
|
|
|
util "app.yhyue.com/moapp/jybase/common"
|
|
|
+ "app.yhyue.com/moapp/jybase/date"
|
|
|
|
|
|
. "app.yhyue.com/moapp/jybase/mongodb"
|
|
|
|
|
@@ -212,6 +213,9 @@ func (s *Short) Article(stype, id string) error {
|
|
|
obj["entIds"] = winnerIdArr
|
|
|
}
|
|
|
}
|
|
|
+ if obj["publishtime"] != nil {
|
|
|
+ obj["publishtimeShorDate"] = time.Unix(util.Int64All(obj["publishtime"]), 0).Format(date.Date_Short_Layout)
|
|
|
+ }
|
|
|
s.T["url"] = s.Uri()
|
|
|
s.T["obj"] = obj
|
|
|
|
|
@@ -441,6 +445,10 @@ func (s *Short) Article(stype, id string) error {
|
|
|
_, _, _, objc := pcVRT(sid, indust, stype, isVip || isMember || isEntniche)
|
|
|
node = SeeDetailLimit(objc, userId, sid)
|
|
|
}
|
|
|
+
|
|
|
+ if obj["publishtime"] != nil {
|
|
|
+ obj["publishtimeShorDate"] = time.Unix(util.Int64All(obj["publishtime"]), 0).Format(date.Date_Short_Layout)
|
|
|
+ }
|
|
|
s.T["canRead"] = node
|
|
|
if stype == "advancedProject" {
|
|
|
canRead := false
|
|
@@ -526,9 +534,10 @@ func (s *Short) Article(stype, id string) error {
|
|
|
}
|
|
|
} else {
|
|
|
obj = map[string]interface{}{
|
|
|
- "title": obj["title"],
|
|
|
- "_id": obj["_id"],
|
|
|
- "subtype": obj["subtype"],
|
|
|
+ "title": obj["title"],
|
|
|
+ "_id": obj["_id"],
|
|
|
+ "subtype": obj["subtype"],
|
|
|
+ "stypeadd": obj["stypeadd"],
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -537,6 +546,7 @@ func (s *Short) Article(stype, id string) error {
|
|
|
if ssOpenid != nil {
|
|
|
obj["ucbsId"] = encrypt.EncodeArticleId2ByCheck("ucbs#" + ssOpenid.(string) + "#" + id)
|
|
|
}
|
|
|
+
|
|
|
s.T["obj"] = obj
|
|
|
s.T["url"] = s.Uri()
|
|
|
return s.Render("/pc/biddetail_rec.html", &s.T)
|
|
@@ -1008,6 +1018,9 @@ func (s *Short) NologinArticle(stype, id string) error {
|
|
|
obj = Filter(obj)
|
|
|
obj["description"] = fmt.Sprintf("%s,%s。", obj["title"], baseInfo(obj))
|
|
|
}
|
|
|
+ if obj["publishtime"] != nil {
|
|
|
+ obj["publishtimeShorDate"] = time.Unix(util.Int64All(obj["publishtime"]), 0).Format(date.Date_Short_Layout)
|
|
|
+ }
|
|
|
s.T["obj"] = obj
|
|
|
s.T["url"] = s.Uri()
|
|
|
s.T["newBidInfoList"] = tg.GetNewBidInfo()
|