10192 【越南】【主干】【港台】【砍树】上线增加膜拜主动推送(膜拜玩家信息转json格式)
1个文件已修改
3 ■■■■ 已修改文件
ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorship.py 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorship.py
@@ -29,6 +29,7 @@
import random
import time
import json
# 被膜拜玩家  RecType = ShareDefine.Def_PlayerRecType_WorshipPlayer
def GetWorshipType(recData): return recData.GetValue1() # 膜拜类型
@@ -449,7 +450,7 @@
        infoPack.PlayerID = recPlayerID
        infoPack.WorshipType = GetWorshipType(recData)
        infoPack.WorshipValue = GetWorshipValue(recData)
        infoPack.PlayerInfo = str(modelShow).replace(" ", "").replace("\'", "\"")
        infoPack.PlayerInfo = json.dumps(modelShow, ensure_ascii=False).replace(" ", "")
        infoPack.InfoLen = len(infoPack.PlayerInfo)
        
        if curPlayer: