1
0

2 Commits 9f413a37b4 ... c2a72f6bf7

Autor SHA1 Nachricht Datum
  zhujieshan c2a72f6bf7 [fix] bug vor 2 Monaten
  zhujieshan 1ee70540e5 [fix] bug vor 2 Monaten

+ 4 - 0
QuickSearchLocation/Classes/Common/Tool/QSLGravityManager.swift

@@ -13,7 +13,11 @@ var gravityInstance: GravityEngineSDK?
 class QSLGravityManager {
 
     func initGE() {
+#if targetEnvironment(simulator)
         return;
+#else
+
+#endif
         // 引力引擎
         let config = GEConfig()
         

+ 9 - 7
QuickSearchLocation/Classes/Pages/QSLVip/Controller/QSLActivityVipVC.swift

@@ -39,7 +39,7 @@ class QSLActivityVipVC: QSLBaseController {
         let vc = QSLWebViewController()
         vc.webUrl = QSLConfig.AppPrivacyAgreementLink
         vc.title = "隐私政策"
-        self.navigationController?.pushViewController(vc, animated: true)
+        self.present(vc, animated: true)
     }
     
     @objc func serviceAction() {
@@ -47,7 +47,7 @@ class QSLActivityVipVC: QSLBaseController {
         let vc = QSLWebViewController()
         vc.webUrl = QSLConfig.AppServiceAgreementLink
         vc.title = "服务协议"
-        self.navigationController?.pushViewController(vc, animated: true)
+        self.present(vc, animated: true)
     }
     
     @objc func subscibeAction() {
@@ -55,7 +55,7 @@ class QSLActivityVipVC: QSLBaseController {
         let vc = QSLWebViewController()
         vc.webUrl = QSLConfig.AppSubscibeAgreementLink
         vc.title = "续订说明"
-        self.navigationController?.pushViewController(vc, animated: true)
+        self.present(vc, animated: true)
     }
     
     @objc func payBtnAction() {
@@ -117,11 +117,13 @@ class QSLActivityVipVC: QSLBaseController {
                     gravityInstance?.track(QSLGravityConst.activity_vip_result, properties: ["purchase_result": "success","pay_amount":Int32(selectGood.amount)])
 
                     DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
-                        self.navigationController?.popViewController(animated: true)
+                        self.dismiss(animated: false)
                         NotificationCenter.default.post(name: QSLNotification.QSLRefreshMember, object: nil)
-                        
-                        if(!QSLBaseManager.shared.isLogin()){
-                            QSLJumpManager.shared.pushToLogin(type: .member)
+
+                        DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) {
+                            if(!QSLBaseManager.shared.isLogin()){
+                                QSLJumpManager.shared.pushToLogin(type: .member)
+                            }
                         }
                     }
                     

+ 1 - 1
QuickSearchLocation/Classes/Pages/QSLVip/QSLVipManager.swift

@@ -93,7 +93,7 @@ extension QSLVipManager {
         }
         
         self.isPaying = true
-        self.isCheck = true
+        self.isCheck = false
         
         print("开始恢复订阅")
         QSLVipManager.shared.checkTransAction {isSuccess, response in