Skip to content

Commit

Permalink
修改开始请求时间
Browse files Browse the repository at this point in the history
  • Loading branch information
AylaAsia-wangxiaodong committed Sep 15, 2021
1 parent b249124 commit bf903d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/github/lyrric/service/SecKillService.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ public void startSecKill(Integer vaccineId, String startDateStr, MainFrame mainF
}
}
now = System.currentTimeMillis();
if(now + 1000 < startDate){
if(now + 500 < startDate){
logger.info("获取st参数成功,还未到秒杀开始时间,等待中......");
Thread.sleep(startDate - now - 1000);
Thread.sleep(startDate - now - 500);
}

service.submit(new SecKillRunnable(false, httpService, vaccineId, startDate));
Expand Down

0 comments on commit bf903d5

Please sign in to comment.