package logic import "time" func nowUnix(ts int64) int64 { if ts > 0 { return ts } return time.Now().Unix() }