Skip to content

Commit

Permalink
修改了秒杀的时间长度
Browse files Browse the repository at this point in the history
  • Loading branch information
AylaAsia-wangxiaodong committed Sep 6, 2021
1 parent 3d6b6a4 commit 7f62a9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7f62a9e

Please # to comment.