ソースを参照

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

zhangxinlei1996 2 年 前
コミット
da19d24908
1 ファイル変更4 行追加0 行削除
  1. 4 0
      src/jfw/front/shorturl.go

+ 4 - 0
src/jfw/front/shorturl.go

@@ -445,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