jerry 1 kuukausi sitten
vanhempi
sitoutus
f658408e0f
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      plugins/vfs_plugin.py

+ 2 - 2
plugins/vfs_plugin.py

@@ -966,7 +966,7 @@ class VfsPlugin(IVSPlg):
             self.booking_wait_applied = True
         
         # 重试机制:添加申请人有时候会因为并发冲突失败
-        MAX_RETRY = 3
+        MAX_RETRY = 4
         for i in range(MAX_RETRY):
             try:
                 final_urn = self._add_primary_applicant(apt_config, user_inputs, is_waitlist, ocr_enabled, enable_reference_number)
@@ -974,7 +974,7 @@ class VfsPlugin(IVSPlg):
                     break
             except Exception as e:
                 self._log(f"Add Applicant retry {i+1}/{MAX_RETRY}: {e}")
-                time.sleep(2)
+            time.sleep(5.0)
         
         if not final_urn:
             raise BizLogicError(message="Failed to add primary applicant (Slot likely taken or API error)")