| | |
| | | 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
|
| | |
| | | '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, 98]:
|
| | | 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
|
| | |
|