From 7f62a9ed2566e47ba46db48f0edb4a3902168402 Mon Sep 17 00:00:00 2001 From: "xiaodong.wang" Date: Mon, 6 Sep 2021 16:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E7=A7=92=E6=9D=80?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E9=97=B4=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/github/lyrric/service/SecKillService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/lyrric/service/SecKillService.java b/src/main/java/com/github/lyrric/service/SecKillService.java index 080acfd..f366f36 100644 --- a/src/main/java/com/github/lyrric/service/SecKillService.java +++ b/src/main/java/com/github/lyrric/service/SecKillService.java @@ -71,7 +71,7 @@ public void startSecKill(Integer vaccineId, String startDateStr, MainFrame mainF } catch (BusinessException e) { logger.info("Thread ID: {}, 抢购失败: {}",Thread.currentThread().getId(), e.getErrMsg()); //如果离开始时间180秒后,或者已经成功抢到则不再继续 - if (System.currentTimeMillis() > startDate + 1000 * 60 * 2 || orderId != null) { + if (System.currentTimeMillis() > startDate + 1000 * 60 * 5 || orderId != null) { break; } } catch (Exception e) {