gfg 1 an în urmă
părinte
comite
51ec5f21dd
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      GameClient/Assets/Game/HotUpdate/Platform/QDAppStore.cs

+ 3 - 1
GameClient/Assets/Game/HotUpdate/Platform/QDAppStore.cs

@@ -91,6 +91,7 @@ namespace GFGGame
                 PromptController.Instance.ShowFloatTextPrompt("有未完成的订单,请稍后再试!");
                 PromptController.Instance.ShowFloatTextPrompt("有未完成的订单,请稍后再试!");
                 return;
                 return;
             }
             }
+            ViewManager.Show<ModalStatusView>("");
             this.OrderId = orderID;
             this.OrderId = orderID;
             m_StoreController.InitiatePurchase(buyID + "");
             m_StoreController.InitiatePurchase(buyID + "");
         }
         }
@@ -146,7 +147,7 @@ namespace GFGGame
             Debug.Log($"Purchase failed - Product: '{product.definition.id}', PurchaseFailureReason: {failureReason}");
             Debug.Log($"Purchase failed - Product: '{product.definition.id}', PurchaseFailureReason: {failureReason}");
 
 
             this.OrderId = null;
             this.OrderId = null;
-
+            ViewManager.Hide<ModalStatusView>();
             
             
             switch (failureReason)
             switch (failureReason)
             {
             {
@@ -179,6 +180,7 @@ namespace GFGGame
 
 
         public PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs args)
         public PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs args)
         {
         {
+            ViewManager.Hide<ModalStatusView>();
             //Retrieve the purchased product
             //Retrieve the purchased product
             var product = args.purchasedProduct;
             var product = args.purchasedProduct;
             Debug.Log($"Purchase Complete - Product: {product.definition.id}");
             Debug.Log($"Purchase Complete - Product: {product.definition.id}");