|
|
@@ -119,9 +119,9 @@ class OutMoneyViewController: BaseViewController {
|
|
|
accountNameTextField.text = accountManager.moAccountBaseInfo?.accountInfo.customerName
|
|
|
|
|
|
outMoneyAmountTextField.addTarget(self, action: #selector(calCusBankCharge), for: .editingChanged)
|
|
|
- if let configInfo = accountManager.configInfo,
|
|
|
- let signTime = configInfo["012"]?.paramValue,
|
|
|
- let outTime = configInfo["013"]?.paramValue {
|
|
|
+ if let configInfo = MTP2BusinessCore.shared.address?.hsbyBankSignZone.components(separatedBy: "-"),
|
|
|
+ let signTime = configInfo.first,
|
|
|
+ let outTime = configInfo.last {
|
|
|
bankOutMoneyTipMessage.text = "银行出金时间段:\(signTime) - \(outTime)"
|
|
|
} else {
|
|
|
bankOutMoneyTipMessage.isHidden = true
|
|
|
@@ -273,6 +273,16 @@ class OutMoneyViewController: BaseViewController {
|
|
|
|
|
|
/// 校验数据
|
|
|
func checkValue() -> Bool {
|
|
|
+
|
|
|
+ let now = Date().getString(formatter: "HH:mm")
|
|
|
+ guard let configInfo = MTP2BusinessCore.shared.address?.hsbyBankSignZone.components(separatedBy: "-"),
|
|
|
+ let signTime = configInfo.first,
|
|
|
+ let outTime = configInfo.last, now>signTime,
|
|
|
+ now<outTime else {
|
|
|
+ self.showHintController(title: "提示", message: "请在规定的时间段内进行提现!", handler: nil)
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
/// 出金金额
|
|
|
if let outMoneyAmount = self.outMoneyAmountTextField.text {
|
|
|
if outMoneyAmount.trimmingCharacters(in: CharacterSet.whitespaces).isEmpty {
|