From d7340c6378a92c5f694f43acce0182b4198ba556 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 26 一月 2026 16:17:03 +0800
Subject: [PATCH] 423 【内政】命格系统-服务端(命格随机等级范围上限+1)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py | 35 +++++++++++++++++++++++------------
1 files changed, 23 insertions(+), 12 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..4ccd120 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,20 +81,28 @@
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:
# 合服情况,玩家取自己服发送,非玩家数据按指定平台配置发
@@ -114,6 +124,7 @@
# 第五个参数0代表get发送 1代表post
GameWorld.GetGameWorld().EventReport_EventReport("", "", "", "", 0, getUrl)
return
+
## =================================================================================================
def WriteEvent_login(curPlayer):
--
Gitblit v1.8.0