瀏覽代碼

Merge branch 'dev/v4.8.83_rjj' of qmx/jy into feature/v4.8.83

renjiaojiao 1 年之前
父節點
當前提交
c26d048239
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/jfw/front/index.go

+ 5 - 1
src/jfw/front/index.go

@@ -288,7 +288,11 @@ func GetRecommendBidZone(typ int, pageSize int) (list []map[string]interface{},
 		var finalArr []map[string]interface{}
 		for _, m := range bidRes.List() {
 			m["_id"] = encrypt.EncodeArticleId2ByCheck(common.ObjToString(m["bid_id"]))
-			m["publish_time"] = time.Unix(common.Int64All(m["publish_time"]), 0).Format("2006-01-02")
+			if typs == "招标公告" {
+				m["publish_time"] = time.Unix(common.Int64All(m["publish_time"]), 0).Format("01-02")
+			} else {
+				m["publish_time"] = time.Unix(common.Int64All(m["publish_time"]), 0).Format("2006-01-02")
+			}
 			finalArr = append(finalArr, m)
 
 		}