Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
akynazh committed Sep 1, 2024
1 parent 0d5a8d8 commit 6eef412
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/monitor/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ func getAllPendingOrders() (map[string]model.TradeOrders, error) {
var _lock = make(map[string]model.TradeOrders) // 当前所有正在等待支付的订单 Lock Key
for _, order := range tradeOrders {
if time.Now().Unix() >= order.ExpiredAt.Unix() { // 订单过期
log.Info("订单过期:", order.OrderId)
err := order.OrderSetExpired()
if err != nil {
log.Error("订单过期标记失败:", err, order.OrderId)
Expand Down

0 comments on commit 6eef412

Please sign in to comment.