From 4d05b52d78b592673bd93dd29f1668147cf89039 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 16 十月 2018 15:04:06 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
index 91bff20..d22603a 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
@@ -31,6 +31,7 @@
 import GameWorld
 import IPY_GameServer
 import MergeBroadcast
+import IpyGameDataPY
 import ShareDefine
 import ChConfig
 import types
@@ -315,3 +316,12 @@
     sysMsg = '%s'%([actionid, addCnt])
     curPlayer.MapServer_QueryPlayerResult(0, 0, "AddFamilyActivity", sysMsg, len(sysMsg))
     return
+
+## 获取功能限制等级(等级条件为全局)
+def GetFuncLimitLV(funcID):
+    ipyData = IpyGameDataPY.GetIpyGameData("FuncOpenLV", funcID)
+    if not ipyData:
+        return 0
+    
+    return ipyData.GetLimitLV()
+

--
Gitblit v1.8.0