From 055981a4685a066e17813fcbb8ce294e83fb7e18 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 18 三月 2026 18:00:34 +0800
Subject: [PATCH] 571 【荣耀战将】删档测试充值返利(增加验证其他服优先返利过的情况;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py
index 83033e1..ede0efe 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py
@@ -257,12 +257,27 @@
GameWorld.Log('无法找到文件 = %s'%(filePath))
raise Exception('无法找到文件 = %s'%(filePath))
+ batFilePath = ChConfig.GetServersRoutePath() + "\\Config\\BattleServer.json"
+ if not os.path.isfile(batFilePath):
+ GameWorld.Log('无法找到文件 = %s'%(batFilePath))
+ raise Exception('无法找到文件 = %s'%(batFilePath))
+
f = open(filePath, 'r')
- strMsg = f.read()
+ serverDict = eval(f.read())
f.close()
- ServersConfigDict = eval(strMsg)
+ f = open(batFilePath, 'r')
+ batServerDict = eval(f.read())
+ f.close()
+ groupName = GameWorld.GetServerGroupName()
+ ServersConfigDict = {}
+ ServersConfigDict = {int(k):v for k, v in serverDict.items()}
+ for batServerID, mapID in batServerDict.items():
+ if batServerID in ServersConfigDict:
+ continue
+ ServersConfigDict[batServerID] = [groupName, mapID, ShareDefine.serverType_Battle]
+
return ServersConfigDict
## PyMongoDataServer.ini配置读取
--
Gitblit v1.8.0