From d51411f7aec724285cbca3a5501079642200ad82 Mon Sep 17 00:00:00 2001 From: duyu Date: Mon, 12 Aug 2024 15:52:14 +0800 Subject: [PATCH] fix --- app/models/orders/orders.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/orders/orders.go b/app/models/orders/orders.go index baad33e..ecb2f5e 100644 --- a/app/models/orders/orders.go +++ b/app/models/orders/orders.go @@ -365,8 +365,8 @@ func (m *ordersModel) GetTimeoutOrder( sql := "1=1" var args []interface{} sql += " and transfer_status not in (1,2,4,5,6)" - // sql += " and created_at <= DATE_SUB(NOW(), INTERVAL 5 MINUTE)" - sql += " and created_at <= DATE_SUB(DATE_ADD(NOW(),INTERVAL 8 HOUR), INTERVAL 5 MINUTE)" + // sql += " and created_at <= DATE_SUB(NOW(), INTERVAL 3 MINUTE)" + sql += " and created_at <= DATE_SUB(DATE_ADD(NOW(),INTERVAL 8 HOUR), INTERVAL 3 MINUTE)" err = m.GetDb().Where(sql, args...).OrderBy("created_at").Limit(limit).Find(&orders) return }