|
@@ -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()
|