Browse Source

苹果内购验单跳出循环

linhaohong 9 tháng trước cách đây
mục cha
commit
d57cf893e0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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: