From a8e0b46434580c120a1796a6d30d2d715e24a44d Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 25 二月 2025 11:16:52 +0800 Subject: [PATCH] 1111 【越南】【英语】【BT】【砍树】增加任务判断X阶装备强化是否全部满级(修复判断bug); --- ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py index bebcd0a..a54574e 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,14 +147,19 @@ 'LogoffTime':dbPlayer.LogoffTime, #离线时间 'LoginTime':dbPlayer.LoginTime, # 上线时间 'LoginIP':dbPlayer.LoginIP, #登入IP + 'ClientVersion':accountData.ClientVersion, #客户端版本号 'Online':0, } # 需要额外同步的自定义货币 CurrencyValueDict = {} - for moneyType in [99]: - CurrencyValueDict['PlayerCurrency_%s' % moneyType] = roleDict.get("PlayerCurrency_%s" % moneyType, 0) + for moneyType in [99, 41, 42]: + if moneyType == 99: + moneyValue = dbPlayer.ExAttr11 + else: + moneyValue = roleDict.get("PlayerCurrency_%s" % moneyType, 0) + CurrencyValueDict['PlayerCurrency_%s' % moneyType] = moneyValue playerInfo.update(CurrencyValueDict) return GMCommon.Def_Success, playerInfo -- Gitblit v1.8.0