From 5fbb5f807ca75fa69fba14ad2563892f08b4588d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 10 二月 2026 18:28:22 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(修复改名没有同步更新名字映射关系bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py | 43 +++++++++++++++++++++++++------------------
1 files changed, 25 insertions(+), 18 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
index 1c55019..d5cecfa 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
@@ -32,6 +32,8 @@
#"""Version = 2017-07-04 15:00"""
#---------------------------------------------------------------------
+import ChConfig
+import PlayerControl
import IpyGameDataPY
import ReadChConfig
import ShareDefine
@@ -79,28 +81,32 @@
if curPlayer:
if not GameWorld.IsNormalPlayer(curPlayer):
return
- #UTF8 需要转成url编码才可用
- playerInfo = urllib.urlencode({"RoleID": curPlayer.GetName(),
- "AccountID": GameWorld.GetPlatformAccID(curPlayer.GetAccID()),
- "IP": curPlayer.GetIP(),
- "Level": curPlayer.GetLV(),
- "DeviceFlag": curPlayer.GetAccountData().GetDeviceFlag(),
- "Job": curPlayer.GetJob(),
- "PlayerID": curPlayer.GetPlayerID(),
- "CreateRoleTime": curPlayer.GetCreateRoleTime(),
- })
-
+ playerInfo = {"RoleID": curPlayer.GetName(),
+ "AccountID": GameWorld.GetPlatformAccID(curPlayer.GetAccID()),
+ "IP": curPlayer.GetIP(),
+ "Level": curPlayer.GetLV(),
+ "DeviceFlag": curPlayer.GetAccountData().GetDeviceFlag(),
+ "Job": curPlayer.GetJob(),
+ "PlayerID": curPlayer.GetPlayerID(),
+ "CreateRoleTime": curPlayer.GetCreateRoleTime(),
+ "CTGRealTotal": curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CTGRealTotal),
+ "FightPower": PlayerControl.GetFightPower(curPlayer),
+ "MainTaskID": PlayerControl.GetMainTaskID(curPlayer),
+ "MainPassLVID": PlayerControl.GetPassMainLevelID(curPlayer),
+ "FamilyName": curPlayer.GetFamilyName(),
+ "ReamlLV":curPlayer.GetOfficialRank(),
+ "TreeLV":curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TreeLV),
+ }
+ for mapID in ChConfig.ReportCenterMapIDList:
+ playerInfo["FBPass%s" % mapID] = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FBPassLineID % mapID)
+
OperatorID = GameWorld.GetPlayerPlatform(curPlayer)
RegionName = GameWorld.GetPlayerServerSID(curPlayer)
- playerInfo = "&%s"%playerInfo
+ playerInfo = "&%s" % urllib.urlencode(playerInfo) #UTF8 需要转成url编码才可用
else:
- # 合服情况,玩家取自己服发送,非玩家数据按指定平台配置发
- sid = GameWorld.GetPlayerMainServerID(OperatorID)
- if not sid:
- GameWorld.ErrLog("GetPlayerMainServerID: %s-%s"%(OperatorID, sid))
- return
- RegionName = 's%s'%sid
+ serverID = GameWorld.GetGameWorld().GetServerID()
+ RegionName = 's%s'%serverID
if eventParam:
eventParam = "&%s"%eventParam
@@ -114,6 +120,7 @@
# 第五个参数0代表get发送 1代表post
GameWorld.GetGameWorld().EventReport_EventReport("", "", "", "", 0, getUrl)
return
+
## =================================================================================================
def WriteEvent_login(curPlayer):
--
Gitblit v1.8.0