From 4801fc0909fe2af7af301b3bafdf67dbd6916ed7 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 12 二月 2026 18:06:28 +0800
Subject: [PATCH] 16 卡牌服务端(废弃平台配置,暂时只使用AppID;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py | 2 +-
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldAction.py | 2 +-
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py | 6 ------
3 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py
index baeeedf..5139b89 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py
@@ -73,7 +73,7 @@
if len(inputList) != 2:
return
gmLV = GameWorld.ToIntDef(inputList[1])
- playerPF = GameWorld.GetPlatform()
+ playerPF = GameWorld.GetAppID()
# curIP = curPlayer.GetIP()
# if (curIP.find('10.30.') == 0 or curIP.find('192.168.') == 0) and playerPF == "173on_lan":
#测试修改
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
index 1262e72..2ee6b3b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -1441,12 +1441,6 @@
# return serverID
#return MainServerDict[serverID]
-##获得当前服务器平台
-# @param 无
-# @return
-def GetPlatform():
- return ReadChConfig.GetPyMongoConfig("platform", "PlatformName")
-
def GetAppID():
## 获取渠道ID
return ReadChConfig.GetPyMongoConfig("platform", "AppID")
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldAction.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldAction.py
index 20d4750..a972399 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldAction.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldAction.py
@@ -69,7 +69,7 @@
#maxCustomServerDayMix = IpyGameDataPY.GetFuncCfg("MixServer", 1) # 定制运营活动最大合服天
operationTodayActionDict = {}
PyGameData.g_operationActionDict = {}
- platform = GameWorld.GetPlatform()
+ platform = GameWorld.GetAppID() # 暂时先直接用AppID,废弃平台配置
serverID = GameWorld.GetGameWorld().GetServerID()
ipyDataMgr = IpyGameDataPY.IPY_Data()
curWeekday = curDateTime.weekday() + 1 # 今天星期几, 1代表星期1
--
Gitblit v1.8.0