Skip to content

Commit 7f62a9e

Browse files
修改了秒杀的时间长度
1 parent 3d6b6a4 commit 7f62a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/lyrric/service/SecKillService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void startSecKill(Integer vaccineId, String startDateStr, MainFrame mainF
7171
} catch (BusinessException e) {
7272
logger.info("Thread ID: {}, 抢购失败: {}",Thread.currentThread().getId(), e.getErrMsg());
7373
//如果离开始时间180秒后,或者已经成功抢到则不再继续
74-
if (System.currentTimeMillis() > startDate + 1000 * 60 * 2 || orderId != null) {
74+
if (System.currentTimeMillis() > startDate + 1000 * 60 * 5 || orderId != null) {
7575
break;
7676
}
7777
} catch (Exception e) {

0 commit comments

Comments
 (0)