Переглянути джерело

外部转账功能限制确认连续点击请求。

culturetown 2 тижнів тому
батько
коміт
34fc79680b

+ 3 - 3
Koala/Koala.xcworkspace/xcuserdata/mac.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -190,9 +190,9 @@
             filePath = "Koala/Modular/JDAssets/VC/JDAFiatTransferViewController.swift"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "204"
-            endingLineNumber = "204"
-            landmarkName = "netInsertTransfer()"
+            startingLineNumber = "206"
+            endingLineNumber = "206"
+            landmarkName = "tableView(_:cellForRowAt:)"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>

+ 2 - 0
Koala/Koala/Modular/JDAssets/VC/JDAFiatTransferViewController.swift

@@ -161,6 +161,7 @@ extension JDAFiatTransferViewController {
             param.add(["account": self.areaCode + self.account])
         }
        
+        self.submitBtn.isEnabled = false
         ProgressHUD.showMessage(status: switchLanguage("正在请求"))
         NetWork.NetWorkInstance.requestData(requestType: .Post, URLString: netForUserExchange, parameters: param, success: { _, _ in
             ProgressHUD.showSuccess(status: switchLanguage("提交成功"))
@@ -170,6 +171,7 @@ extension JDAFiatTransferViewController {
             }
         }) { _, result in
             ProgressHUD.showError(status: result as! String)
+            self.submitBtn.isEnabled = true
         }
     }
 }