abiao лет назад: 5
Родитель
Сommit
41913c750f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      go/gopath/src/fohow.com/apps/models/product_model/product.go

+ 1 - 1
go/gopath/src/fohow.com/apps/models/product_model/product.go

@@ -228,7 +228,7 @@ func GetSeckillProducts(queryDate time.Time, useCache bool) (list []*Product) {
 	sql := `
 		select * from
 		products
-		where DATE_FORMAT(DATE_ADD(seckill_start,INTERVAL 8 HOUR),'%Y-%m-%d') = ? and status = 1 and show_flag = 1;
+		where DATE_FORMAT(DATE_ADD(seckill_start,INTERVAL 8 HOUR),'%Y-%m-%d') = ? and status = 1 and live = false and show_flag = 1;
 		`
 
 	_, err := orm.NewOrm().Raw(sql, queryDate.Format("2006-01-02")).QueryRows(&list)