zhangxinlei1996 6 rokov pred
rodič
commit
e18bb9298e
1 zmenil súbory, kde vykonal 4 pridanie a 3 odobranie
  1. 4 3
      src/jfw/front/follow.go

+ 4 - 3
src/jfw/front/follow.go

@@ -394,14 +394,15 @@ func (m *Follow) Photo(tp string) error {
 			}
 			////////////////////////
 			bidopentime := (*data)["bidopentime"]
-			if bidopentime != nil {
+			//TODO
+			if bidopentime != nil && bidopentime != "" {
 				m.T["bidopentime"] = util.FormatDateWithObj(&bidopentime, "2006年01月02日 15时") + " " + convertWeekday(time.Unix(util.Int64All(bidopentime), 0).Weekday().String())
 				m.T["l_bidopentime"] = bidopentime
 			}
-			if remindtime := (*data)["remindtime"]; remindtime != nil {
+			if remindtime := (*data)["remindtime"]; remindtime != nil && remindtime != "" {
 				m.T["remindtime"] = util.FormatDateWithObj(&remindtime, "2006年01月02日 15时") + " " + convertWeekday(time.Unix(util.Int64All(remindtime), 0).Weekday().String())
 				m.T["l_remindtime"] = remindtime
-			} else if bidopentime != nil {
+			} else if bidopentime != nil && bidopentime != "" {
 				date := time.Unix(util.Int64All(bidopentime), 0).AddDate(0, 0, -1)
 				m.T["remindtime"] = util.FormatDate(&date, "2006年01月02日 15时") + " " + convertWeekday(date.Weekday().String())
 				m.T["l_remindtime"] = date.Unix()