6328 【后端】优化代码eval -- 玩家缓存数据提取常用字段 等级和最后一次发送时间
| | |
| | | elif packType == IPY_GameServer.CDBPlayerRefresh_ExAttr11:
|
| | | PlayerControl.SetTodayXianyuanCoin(curPlayer, packValue)
|
| | |
|
| | | elif packType == IPY_GameServer.CDBPlayerRefresh_ExAttr13:
|
| | | PlayerControl.SetPlayerServerGroupID(curPlayer, packValue)
|
| | | |
| | | elif packType == IPY_GameServer.CDBPlayerRefresh_OperateInfo:
|
| | | curPlayer.SetOperateInfo(packValue);
|
| | |
|
| | |
| | |
|
| | | ## 玩家所属服务器组ID
|
| | | def GetPlayerServerGroupID(curPlayer): return curPlayer.GetExAttr13()
|
| | | def SetPlayerServerGroupID(curPlayer, groupID): return curPlayer.SetExAttr13(groupID)
|
| | |
|
| | | ## 是否脱机挂机状态
|
| | | def GetIsTJG(curPlayer):
|
| | |
| | | if appID not in appIDDict:
|
| | | appIDDict[appID] = []
|
| | |
|
| | | appIDDict[appID].append([cacheDict.get("GeTuiClientID", ""), cacheDict.get("Name", "")])
|
| | | appIDDict[appID].append([curCache.GetGeTuiID(), cacheDict.get("Name", "")])
|
| | |
|
| | |
|
| | | if not appIDDict:
|
| | |
| | | return
|
| | |
|
| | | showStr = GameWorld.GbkToCode(IpyGameDataPY.GetFuncCfg("GeTuiOffLine", 3))%(tagPlayerName) # 文字信息
|
| | | GeTuiNotify({cacheDict.get("AppID", ""):[[cacheDict.get("GeTuiClientID", ""), playerName]]}, showStr)
|
| | | GeTuiNotify({cacheDict.get("AppID", ""):[[curCache.GetGeTuiID(), playerName]]}, showStr)
|
| | | return
|
| | |
|
| | | # 下线时,低级玩家没有离线时间的玩家提示, 上线清空
|
| | |
| | | #推送提醒
|
| | | curPlayerPropDict[ChConfig.Def_PDict_GeTuiSet] = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GeTuiSet)
|
| | | curPlayerPropDict[ChConfig.Def_PDict_NoGeTuiTime] = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_NoGeTuiTime)
|
| | | curPlayerPropDict['GeTuiClientID'] = curPlayer.GetAccountData().GetGeTuiClientID()
|
| | |
|
| | | # 各类功能 BOSS次数, BOSS相关对应B.Boss信息.xlsx的CntMark
|
| | | # 封魔坛剩余次数
|