From bbe421e9f3abcfffcec6a485c924abff7eeb424b Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 13 十一月 2018 14:39:49 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 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