Quellcode durchsuchen

苹果内购验单跳出循环

linhaohong vor 10 Monaten
Ursprung
Commit
d57cf893e0
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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: