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