From 7ef7d997863299960ca08746afdd1872b3a68e80 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 30 八月 2018 15:21:53 +0800
Subject: [PATCH] 3009【前端】运营类活动优化

---
 System/OpenServerActivity/OSGiftModel.cs |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/System/OpenServerActivity/OSGiftModel.cs b/System/OpenServerActivity/OSGiftModel.cs
index 814148e..e0eacb6 100644
--- a/System/OpenServerActivity/OSGiftModel.cs
+++ b/System/OpenServerActivity/OSGiftModel.cs
@@ -155,6 +155,18 @@
             return false;
         }
 
+        public bool IsGiftBuy(int _id)
+        {
+            var _limit = storeModel.GetBuyShopLimit((uint)_id);
+            var config = Config.Instance.Get<StoreConfig>(_id);
+            if (_limit != null && config != null
+                && _limit.BuyCnt >= config.PurchaseNumber[0])
+            {
+                return true;
+            }
+            return false;
+        }
+
         private void PlayerDataRefreshInfoEvent(PlayerDataRefresh _type)
         {
             bool _activate = CheckActivate();

--
Gitblit v1.8.0