gfg 1 year ago
parent
commit
51ec5f21dd
1 changed files with 3 additions and 1 deletions
  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("有未完成的订单,请稍后再试!");
                 return;
             }
+            ViewManager.Show<ModalStatusView>("");
             this.OrderId = orderID;
             m_StoreController.InitiatePurchase(buyID + "");
         }
@@ -146,7 +147,7 @@ namespace GFGGame
             Debug.Log($"Purchase failed - Product: '{product.definition.id}', PurchaseFailureReason: {failureReason}");
 
             this.OrderId = null;
-
+            ViewManager.Hide<ModalStatusView>();
             
             switch (failureReason)
             {
@@ -179,6 +180,7 @@ namespace GFGGame
 
         public PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs args)
         {
+            ViewManager.Hide<ModalStatusView>();
             //Retrieve the purchased product
             var product = args.purchasedProduct;
             Debug.Log($"Purchase Complete - Product: {product.definition.id}");