hxp
2022-10-18 60bcd26554b8cfd45973172dd43d6958757d43f1
9705 【后端】【越南】【主干】【BT7】通过后台查询本服VIP信息
5个文件已修改
19 ■■■■ 已修改文件
ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetVIP.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py
@@ -747,7 +747,8 @@
        PlayerControl.SetCrossMapID(curPlayer, packValue, False)
        
    elif packType == IPY_GameServer.CDBPlayerRefresh_ExAttr9:
        PlayerControl.SetVIPExpireTime(curPlayer, packValue)
        curPlayer.SetExAttr9(packValue)
        #PlayerControl.SetVIPExpireTime(curPlayer, packValue)
        
    elif packType == IPY_GameServer.CDBPlayerRefresh_ExAttr10:
        PlayerControl.SetChatBubbleBox(curPlayer, packValue)
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
@@ -258,8 +258,8 @@
def GetFBFuncLineID(curPlayer): return curPlayer.GetExAttr3()
##VIP到期时间
def GetVIPExpireTime(curPlayer): return curPlayer.GetExAttr9()
def SetVIPExpireTime(curPlayer, expireTime): return curPlayer.SetExAttr9(expireTime)
def GetVIPExpireTime(curPlayer): return 0
def SetVIPExpireTime(curPlayer, expireTime): return
def GetValidVIPLV(curPlayer):
    # @return: 返回当前有效的VIP等级
#    vipTime = GetVIPExpireTime(curPlayer)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetVIP.py
@@ -38,6 +38,7 @@
    if not vipLV:
        curPlayer.SetChangeCoinPointTotal(0)
        curPlayer.SetVIPLv(0)
        PlayerControl.SetVIPLVUpTime(curPlayer, 0)
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_VipExp, 0)
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_VipAwardRecord, 0)
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_VipBuyRecord, 0)
@@ -56,6 +57,7 @@
        return
    
    curPlayer.SetVIPLv(vipLV)
    PlayerControl.SetVIPLVUpTime(curPlayer, int(time.time()))
    
    vipExp = cmdList[1] if len(cmdList) > 1 else None
    if vipExp != None:
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -6210,8 +6210,12 @@
    return
##VIP到期时间, 需要同步GameServer
def GetVIPExpireTime(curPlayer): return curPlayer.GetExAttr9()
def SetVIPExpireTime(curPlayer, expireTime): return curPlayer.SetExAttr9(expireTime, False, True)
def GetVIPExpireTime(curPlayer): return 0
def SetVIPExpireTime(curPlayer, expireTime): return
##最近一次提升VIP等级时间
def GetVIPLVUpTime(curPlayer): return curPlayer.GetExAttr9()
def SetVIPLVUpTime(curPlayer, lvUpTime): return curPlayer.SetExAttr9(lvUpTime, False, True)
##聊天气泡框
def GetChatBubbleBox(curPlayer): return curPlayer.GetExAttr10()
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py
@@ -281,6 +281,8 @@
        return
    while vipLV in vipExpDict and vipExp >= vipExpDict[vipLV]:
        curPlayer.SetVIPLv(vipLV)
        PlayerControl.SetVIPLVUpTime(curPlayer, int(time.time()))
        GameWorld.ChangeTimeNumToStr(timeNum, timeFormat)
        OnChangeVIPLv(curPlayer, vipLV) ##当VIP等级变更,触发的方法写在这里
        PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_VIPLV, 1, [vipLV])
        vipLV += 1