From a23a0acff8d9860e8a326b4cf442b7f56435f049 Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期二, 13 十一月 2018 14:38:01 +0800
Subject: [PATCH] 4534 【1.3】【前端】组队功能和助战积分优化

---
 System/Store/StoreModel.cs |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/System/Store/StoreModel.cs b/System/Store/StoreModel.cs
index f75ae3c..e26af1d 100644
--- a/System/Store/StoreModel.cs
+++ b/System/Store/StoreModel.cs
@@ -877,7 +877,7 @@
             }
         }
     }
-
+    public event Action<int> UpdateHelpPointExchangeEvent;
     public void UpdateCanBuyRedpoint()
     {
         if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Store)) return;
@@ -892,6 +892,13 @@
                     if (UIHelper.GetMoneyCnt(storeConfig.MoneyType) >= (ulong)storeConfig.MoneyNumber)
                     {
                         shopRedDict[storeConfig.ID].state = RedPointState.Simple;
+                        if(storeConfig.ShopType == (int)StoreFunc.IntegralStore)
+                        {
+                            if(UpdateHelpPointExchangeEvent != null)
+                            {
+                                UpdateHelpPointExchangeEvent(key);
+                            }
+                        }
                     }
                     else
                     {

--
Gitblit v1.8.0