|
|
@@ -132,8 +132,7 @@ class PaymentOrderViewController: BaseViewController {
|
|
|
fileprivate func showGoodsInfo(_ goods: MoGoodsInfo?) {
|
|
|
/// 数据异常
|
|
|
guard let obj = goods,
|
|
|
- let accountManager = MTP2BusinessCore.shared.accountManager,
|
|
|
- let taAccountInfo = accountManager.getCurrentTAAccountInfo() else { return }
|
|
|
+ let accountManager = MTP2BusinessCore.shared.accountManager else { return }
|
|
|
|
|
|
/// 商品名称
|
|
|
goodsName.text = obj.goodsname
|
|
|
@@ -149,10 +148,10 @@ class PaymentOrderViewController: BaseViewController {
|
|
|
guard let url = StringUtils.getImageUrl(obj.picurls) else { return }
|
|
|
goodsImage.sd_setImage(with: url, placeholderImage: UIImage(named: "placeholder_image"), options: .queryDiskDataSync, context: nil)
|
|
|
|
|
|
- DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()+0.5) {
|
|
|
- /// 查询资金信息
|
|
|
- accountManager.loginQueryReq(queryItem: "1,2") { (isComplete, error) in
|
|
|
- DispatchQueue.main.async {
|
|
|
+ /// 查询资金信息
|
|
|
+ accountManager.loginQueryReq(queryItem: "1,2") { (isComplete, error) in
|
|
|
+ DispatchQueue.main.async {
|
|
|
+ if let taAccountInfo = accountManager.getCurrentTAAccountInfo() {
|
|
|
/// 期末余额
|
|
|
let blance = taAccountInfo.currentBalance-(taAccountInfo.freezeMargin+taAccountInfo.otherFreezeMargin+taAccountInfo.freezeCharge)
|
|
|
/// 最大可用数量
|