Skip to content

Commit

Permalink
加入ecc-hs加密参数
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrric committed May 25, 2021
1 parent 39028bf commit a8fbeda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
.mtj.tmp/
target/
.idea/
*.iml
# Package Files #
*.jar
*.war
Expand Down
2 changes: 0 additions & 2 deletions seckill.iml

This file was deleted.

7 changes: 4 additions & 3 deletions src/main/java/com/github/lyrric/service/SecKillService.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ public void startSecKill(Integer vaccineId, String startDateStr, MainFrame mainF
try {
st.set(httpService.getSt(vaccineId.toString()));
break;
} catch (Exception e) {
e.printStackTrace();
}catch (BusinessException e){
logger.error("获取st失败: {}", e.getMessage());
}catch (Exception e) {
logger.error("获取st失败,大概率是约秒问题:{}", e.getMessage());
}
}
Runnable runnable = ()->{
Expand Down Expand Up @@ -88,7 +90,6 @@ public void startSecKill(Integer vaccineId, String startDateStr, MainFrame mainF
service.submit(runnable);
}
service.shutdown();

//等待线程结束
try {
service.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS);
Expand Down

0 comments on commit a8fbeda

Please sign in to comment.