ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossChampionship.py
@@ -28,6 +28,10 @@
import time
def DoChampionshipOpen(curPlayer):
    DoPlayerLogin(curPlayer)
    return
def DoPlayerLogin(curPlayer):
    if curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Championship_WorshipCount):
        Sync_ChampionshipPlayerInfo(curPlayer)
@@ -47,6 +51,7 @@
#    BYTE        ZoneID;        //仙官数据分区ID
#    WORD        MainOfficialID;    //界主官职ID
#    WORD        OfficialID;    //申请官职ID
#    BYTE        Cancel;        //是否取消申请,默认0-申请;1-取消申请
#};
def OnChampionshipOfficialApply(index, clientData, tick):
    if GameWorld.IsCrossServer():
@@ -58,6 +63,7 @@
    zoneID = clientData.ZoneID
    mainOfficialID = clientData.MainOfficialID
    officialID = clientData.OfficialID
    cancel = clientData.Cancel
    
    realmLV = curPlayer.GetOfficialRank()
    needRealmLV = IpyGameDataPY.GetFuncCfg("CrossChamOfficial", 3)
@@ -66,7 +72,7 @@
        return
    
    # 发送跨服服务器
    dataMsg = {"zoneID":zoneID, "mainOfficialID":mainOfficialID, "officialID":officialID,
    dataMsg = {"zoneID":zoneID, "mainOfficialID":mainOfficialID, "officialID":officialID, "cancel":cancel,
               "playerID":playerID, "PropData":CrossRealmPlayer.GetPlayerCrossPropDataShort(curPlayer)}
    GameWorld.SendMsgToCrossServer(ShareDefine.ClientServerMsg_ChampionshipOfficialApply, dataMsg)
    return
@@ -202,6 +208,9 @@
        worshipDouble = dataMsg.get("worshipDouble", 0)
        if GameWorld.CheckTimeIsSameServerDayEx(worshipTime):
            worshipCountToday = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Championship_WorshipCount) + 1
            worshipCountMax = IpyGameDataPY.GetFuncCfg("CrossChamWorship", 1)
            if worshipCountToday > worshipCountMax:
                return
            PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_Championship_WorshipCount, worshipCountToday)
            GameWorld.DebugLog("更新膜拜次数! worshipCountToday=%s" % worshipCountToday, playerID)
            Sync_ChampionshipPlayerInfo(curPlayer)