|
@@ -237,8 +237,8 @@ func (m *msgRemind) gc() {
|
|
|
func init() {
|
|
|
go func() {
|
|
|
log.Println("开始加载72小时内的订单到内存中。。。")
|
|
|
- startTime := time.Now().Local().AddDate(0, 0, -3).Format(util.Date_Full_Layout)
|
|
|
- list := Mysql.SelectBySql("select id,order_code,order_money,user_id,prepay_time,remind_status,vip_type from dataexport_order where prepay_time>=? and product_type='VIP订阅' and order_status=0 and (remind_status<>2 or remind_status is null)", startTime)
|
|
|
+ startTime := time.Now().Unix() - MsgRemind.getExpireTime()
|
|
|
+ list := Mysql.SelectBySql("select id,order_code,order_money,user_id,prepay_time,remind_status,vip_type from dataexport_order where order_money>0 prepay_time>=? and product_type='VIP订阅' and order_status=0 and (remind_status<>2 or remind_status is null)", startTime)
|
|
|
if list == nil {
|
|
|
log.Println("加载72小时内的订单到内存中失败")
|
|
|
return
|