From 38ed135a72f9d4f35c6979b815aaa084e12f441f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 27 九月 2024 18:39:59 +0800
Subject: [PATCH] 1111 登录事件1100汇报ClientVersion增加url编码;

---
 ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
index 3de2fd9..12c07f6 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
@@ -476,6 +476,17 @@
         return mainServerID
     return 0
 
+def CheckServerIDInList(serverID, serverIDList):
+    if serverIDList == None:
+        return False
+    if not serverIDList:
+        return True
+    for serverIDInfo in serverIDList:
+        if (isinstance(serverIDInfo, tuple) and serverIDInfo[0] <= serverID <= serverIDInfo[1]) \
+            or (isinstance(serverIDInfo, list) and serverIDInfo[0] <= serverID <= serverIDInfo[1]) \
+            or (isinstance(serverIDInfo, int) and serverIDInfo == serverID):
+            return True
+    return False
 
 #===============================================================================
 # 平台ID = appid

--
Gitblit v1.8.0