From 49a4f21e1149f6d8fe5135fe0875e677d76fbb6b Mon Sep 17 00:00:00 2001 From: marun Date: Sat, 27 Aug 2022 21:41:07 +0800 Subject: [PATCH] fix order check pending --- checkout/Form1.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/checkout/Form1.cs b/checkout/Form1.cs index ac8565d..5da2e09 100644 --- a/checkout/Form1.cs +++ b/checkout/Form1.cs @@ -545,21 +545,15 @@ private Action buyOrderCallback(TicketListItem ticket, int? failCount) Result result2 = JsonConvert.DeserializeObject>(res2); - if (!result2.isSuccess()) { - var msg = ticket.ticketType + "抢票失败: " + result2.result; - LogHelpers.write(msg); - AppendLogText(msg); buyTicketFaild(ticket, result2.msg, result2.state, failCount); return; } if (result2.result is string && (string)result2.result == "pending") { - var msg = ticket.ticketType + "抢票失败: " + result2.result; - LogHelpers.write(msg); - AppendLogText(msg); - buyTicketFaild(ticket, result2.msg, result2.state, failCount); + + buyTicketFaild(ticket, result2.msg, "pending", failCount); return; }