Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
fix order check pending
Browse files Browse the repository at this point in the history
  • Loading branch information
marunrun committed Aug 27, 2022
1 parent 003e94f commit 49a4f21
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions checkout/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -545,21 +545,15 @@ private Action<string> buyOrderCallback(TicketListItem ticket, int? failCount)
Result<object> result2 = JsonConvert.DeserializeObject<Result<object>>(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;
}

Expand Down

0 comments on commit 49a4f21

Please sign in to comment.