浏览代码

苹果内购验单跳出循环

linhaohong 9 月之前
父节点
当前提交
d57cf893e0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Controller/InAppPurchaseController.py

+ 1 - 0
Controller/InAppPurchaseController.py

@@ -148,6 +148,7 @@ class InAppPurchaseView(View):
             while attempts < 6:
                 try:
                     transaction_info = client.get_transaction_info(transaction_id)
+                    break
                 except ConnectionError as err:
                     attempts += 1
                     if attempts == 5: