|
@@ -97,7 +97,7 @@ func adHandle(data []interface{}, s_code string) []adInfo {
|
|
for _, v := range adInfo_Arr {
|
|
for _, v := range adInfo_Arr {
|
|
if v.O_extend.StartTime != "" && len(strings.Split(v.O_extend.StartTime, "-")) == 6 {
|
|
if v.O_extend.StartTime != "" && len(strings.Split(v.O_extend.StartTime, "-")) == 6 {
|
|
if thisTime, err := time.ParseInLocation("2006-01-02-15-04-05", v.O_extend.StartTime, time.Local); err == nil {
|
|
if thisTime, err := time.ParseInLocation("2006-01-02-15-04-05", v.O_extend.StartTime, time.Local); err == nil {
|
|
- log.Println(thisTime.Unix(), "---开始时间----", now.Unix())
|
|
|
|
|
|
+ // log.Println(thisTime.Unix(), "---开始时间----", now.Unix())
|
|
//广告还未开始
|
|
//广告还未开始
|
|
if thisTime.Unix() > now.Unix() {
|
|
if thisTime.Unix() > now.Unix() {
|
|
continue
|
|
continue
|
|
@@ -106,7 +106,7 @@ func adHandle(data []interface{}, s_code string) []adInfo {
|
|
}
|
|
}
|
|
if v.O_extend.EndTime != "" && len(strings.Split(v.O_extend.EndTime, "-")) == 6 {
|
|
if v.O_extend.EndTime != "" && len(strings.Split(v.O_extend.EndTime, "-")) == 6 {
|
|
if thisTime, err := time.ParseInLocation("2006-01-02-15-04-05", v.O_extend.EndTime, time.Local); err == nil {
|
|
if thisTime, err := time.ParseInLocation("2006-01-02-15-04-05", v.O_extend.EndTime, time.Local); err == nil {
|
|
- log.Println(thisTime.Unix(), "---结束时间----", now.Unix())
|
|
|
|
|
|
+ // log.Println(thisTime.Unix(), "---结束时间----", now.Unix())
|
|
//广告已经结束
|
|
//广告已经结束
|
|
if thisTime.Unix() < now.Unix() {
|
|
if thisTime.Unix() < now.Unix() {
|
|
continue
|
|
continue
|