改进重试流程、钉钉通知与使用说明 - #2
Open
YuhangHere wants to merge 5 commits into
Open
Conversation
## Summary - 将下单流程调整为外层检查循环。 - 提交订单失败后不再继续重复调用 SubmitOrder,而是回到 CheckSportSchedule 重新判断场地状态。 - 保留未支付订单检测逻辑,检测到已有订单后直接提示并退出。 ## Why 原逻辑在订单检查通过后会持续调用提交订单接口。若提交阶段返回“场地该时间段预约中”或其他失败信息,程序仍会继续重复提交,容易触发频率限制“请不要频繁提交订单”。现在提交失败后回到检查阶段,更符合“先检查、再提交”的流程。 外层循环: CheckSportSchedule 预约中 -> 等 5 秒继续检查 其他检查错误 -> 退出 检查通过 -> 等待可下单时间 GetOrderList 查一次 已有订单 -> 退出等待支付 没有订单 -> SubmitOrder SubmitOrder 失败 -> 等 5 秒回到检查阶段 SubmitOrder 成功 -> 进入确认订单循环
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
学长您好,我最近在使用您这个项目预约羽毛球场地时,结合自己的使用体验做了一些自用改动,感觉可能也对后续使用者有帮助,所以整理成一个 PR 提交上来,供您参考。
主要改动:
.gitignore。我按功能拆成了几个 commit,如果您觉得有参考价值,可以看看是否适合合并;如果有不合适的地方,我也可以按您的建议继续改。