Browse Source

取消订单规则更改

abiao 5 years ago
parent
commit
6ad9ad45d8

+ 5 - 1
go/gopath/src/fohow.com/apps/controllers/cron_controller/order_receive_automatically.go

@@ -75,7 +75,11 @@ func OrderCancelAutomatically() {
 		beego.BeeLogger.Info("orderId=%s", orderId)
 
 		order := order_model.GetOrderById(orderId)
-		if order == nil || order.PaiedAt > 0 {
+		if order == nil {
+			helpers.ThrowOutRedisList(key, orderId)
+			continue
+		}
+		if order.PaiedAt > 0 {
 			helpers.ThrowOutRedisList(key, orderId)
 			continue
 		}