From e86e19e5e5909f46e09adec1df430e0214a81590 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期三, 18 十月 2023 18:34:19 +0800
Subject: [PATCH] 修复BUG

---
 WanPai/Root/Other/VC/PaymentResultVC.swift |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/WanPai/Root/Other/VC/PaymentResultVC.swift b/WanPai/Root/Other/VC/PaymentResultVC.swift
index 05af06c..81ce035 100644
--- a/WanPai/Root/Other/VC/PaymentResultVC.swift
+++ b/WanPai/Root/Other/VC/PaymentResultVC.swift
@@ -137,17 +137,19 @@
 				collectionView.isHidden =  true
 				switch result {
 					case .fail(let str):
+						label_title.text = "支付失败"
 						btn_again.setTitle("再次支付", for: .normal)
 						btn_back.setTitle("返回", for: .normal)
 						img_paymentState.image = UIImage(named: "icon_fail")
 						label_content.text = str
 					case .success:
+						label_title.text = "支付成功"
 						btn_again.isHidden = true
 						btn_back.setTitleColor(.white, for: .normal)
 						btn_back.backgroundColor = Def_ThemeColor
-						btn_back.setTitle("选择游戏", for: .normal)
+						btn_back.setTitle("我的数据", for: .normal)
 						img_paymentState.image = UIImage(named: "icon_success")
-						label_content.text = "支付成功,请选择游戏!"
+						label_content.text = "支付成功"
 					case .none:break
 				}
 
@@ -189,7 +191,9 @@
 		if let handleVC{
 			handleVC.navigationController?.popToRootViewController(animated: true)
 		}
-		dismiss(animated: true)
+		dismiss(animated: true) {
+			JQ_currentViewController().jq_push(vc: GamesDataSourceVC())
+		}
     }
 }
 

--
Gitblit v1.7.1