抢票日志

This commit is contained in:
liukang 2025-02-24 11:12:01 +08:00
parent 6160ddb8f5
commit cbc93e9f4e

View File

@ -115,7 +115,7 @@ public class RyTask {
Thread.sleep(start - now);
log.info("抢票开始了");
for (MyReq r : req) {
log.info(r.getUser());
log.info("【用户】:"+r.getUser());
// 发起异步请求但不等待结果
CompletableFuture<HttpResponse<String>> future2 = r.getClient().sendAsync(r.getRequest(), HttpResponse.BodyHandlers.ofString());
future2.thenAccept(response -> {