From 048504db4fc14ef9c8d827b8295c0cf10060d918 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 30 七月 2024 14:33:37 +0800
Subject: [PATCH] 1111 【越南】【港台】【主干】【砍树】后台查看玩家增加显示客户端版本号;
---
ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py | 5 +++++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GetPlayerInfo.py | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GetPlayerInfo.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GetPlayerInfo.py
index e1fdb78..1882f46 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GetPlayerInfo.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GetPlayerInfo.py
@@ -59,6 +59,7 @@
'LogoffTime':curPlayer.GetLogoffTime(), #离线时间
'LoginTime':curPlayer.GetLoginTime(), # 上线时间
'LoginIP':curPlayer.GetIP(), #登入IP
+ 'ClientVersion':curPlayer.GetAccountData().GetClientVersion(), #客户端版本号
'Online':1,
}
diff --git a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py
index bebcd0a..36aecad 100644
--- a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py
+++ b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py
@@ -90,6 +90,10 @@
if data == '%s'%GMCommon.Def_GMKey_PlayerName:
return GMCommon.Def_DoQueryLogDB, playerAccID
+ accountData = DataServerPlayerData.tagDSAccount()
+ accountData.ACCID = playerAccID
+ accountData.adoLoad(userdb[UCN_DSAccount])
+
collection = userdb[UCN_DBPlayer]
dbPlayer = DataServerPlayerData.tagDBPlayer()
dbPlayer.IsDeleted = 0
@@ -143,6 +147,7 @@
'LogoffTime':dbPlayer.LogoffTime, #离线时间
'LoginTime':dbPlayer.LoginTime, # 上线时间
'LoginIP':dbPlayer.LoginIP, #登入IP
+ 'ClientVersion':accountData.ClientVersion, #客户端版本号
'Online':0,
}
--
Gitblit v1.8.0