| | |
| | | def GetSyncDict(self):
|
| | | # Value 暂时只同步1~2
|
| | | syncDict = {"PlayerID":self.GetPlayerID(), "Value1":self.GetValue1(), "Value2":self.GetValue2()}
|
| | | syncDict.update(PlayerViewCache.GetShotCacheDict(self.GetPlayerID(), "PlayerID", "FightPower", "ServerID", "OfflineValue"))
|
| | | syncDict.update(PlayerViewCache.GetShotCacheDict(self.GetPlayerID(), "PlayerID", "FightPower", "ServerID", "OfflineValue", "Face", "FacePic"))
|
| | | return syncDict
|
| | |
|
| | | class PyFuncTeam():
|
| | |
| | | ApplyList = []
|
| | | if applyDetail:
|
| | | for applyID in ApplyIDList[::-1]:
|
| | | applyPlayerDict = PlayerViewCache.GetShotCacheDict(applyID, "PlayerID", "FightPower", "ServerID")
|
| | | applyPlayerDict = PlayerViewCache.GetShotCacheDict(applyID, "PlayerID", "FightPower", "ServerID", "Face", "FacePic")
|
| | | if not applyPlayerDict:
|
| | | ApplyIDList.remove(applyID)
|
| | | else:
|
| | |
| | | mem.LV = memberInfo.get("LV", 0)
|
| | | mem.Job = memberInfo.get("Job", 0)
|
| | | mem.RealmLV = memberInfo.get("RealmLV", 0)
|
| | | mem.Face = memberInfo.get("Face", 0)
|
| | | mem.FacePic = memberInfo.get("FacePic", 0)
|
| | | mem.FightPower = memberInfo.get("FightPower", 0) % ChConfig.Def_PerPointValue
|
| | | mem.FightPowerEx = memberInfo.get("FightPower", 0) / ChConfig.Def_PerPointValue
|
| | | mem.Value1 = memberInfo["Value1"]
|
| | |
| | | mem.LV = memberInfo.get("LV", 0)
|
| | | mem.Job = memberInfo.get("Job", 0)
|
| | | mem.RealmLV = memberInfo.get("RealmLV", 0)
|
| | | mem.Face = memberInfo.get("Face", 0)
|
| | | mem.FacePic = memberInfo.get("FacePic", 0)
|
| | | mem.FightPower = memberInfo.get("FightPower", 0) % ChConfig.Def_PerPointValue
|
| | | mem.FightPowerEx = memberInfo.get("FightPower", 0) / ChConfig.Def_PerPointValue
|
| | | mem.OfflineValue = memberInfo.get("OfflineValue", 0)
|
| | |
| | | applyP.LV = applyInfo["LV"]
|
| | | applyP.Job = applyInfo["Job"]
|
| | | applyP.RealmLV = applyInfo["RealmLV"]
|
| | | applyP.Face = applyInfo.get("Face", 0)
|
| | | applyP.FacePic = applyInfo.get("FacePic", 0)
|
| | | applyP.FightPower = applyInfo["FightPower"] % ChConfig.Def_PerPointValue
|
| | | applyP.FightPowerEx = applyInfo["FightPower"] / ChConfig.Def_PerPointValue
|
| | | applyList.append(applyP)
|