9265 【BT5】【后端】53、新增幸运云购(主干 BTGM等级限制购买次数改为VIP等级限制)
3个文件已修改
15 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerLuckyCloudBuy.py 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py
@@ -110,8 +110,10 @@
                    continue
                inputList[i] = value
                
            callFunc(curPlayer, inputList)
            isSendGameServer = callFunc(curPlayer, inputList)
            DR_UseGMCMD(curPlayer, inputStr)
            if isSendGameServer:
                curPlayer.GameServer_GMCmd(inputStr)
            return
        
        # GameObj 的 Get、Set函数
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -1708,6 +1708,9 @@
    timeStr = time.strftime(timeFormat, time.localtime(timeNum))
    return datetime.datetime.strptime(timeStr, timeFormat)
def ChangeStrToDatetime(timeStr, timeFormat=ChConfig.TYPE_Time_Format):
    return datetime.datetime.strptime(timeStr, timeFormat)
def CheckTimeIsSameServerDayEx(checkTime):
    '''判断指定time值与当天时间对比是否为游戏内的同一天;特殊时间点过天后才算不同天
    该函数一般用于判断某个功能记录的版本天是否与当天时间是同一天的逻辑
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerLuckyCloudBuy.py
@@ -100,12 +100,12 @@
                           % (crossServerDateTime, unLimitHour, unLimitMinute))
    else:
        hadBuyCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_LuckyCloudBuy_BuyCount)
        curGMLV = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_BTGMLV)
        vipLV = curPlayer.GetVIPLv()
        gmLVLimitBuyCountList = IpyGameDataPY.GetFuncEvalCfg("LuckyCloudBuyCost", 2)
        maxBuyCount = gmLVLimitBuyCountList[curGMLV] if len(gmLVLimitBuyCountList) > curGMLV else gmLVLimitBuyCountList[-1]
        maxBuyCount = gmLVLimitBuyCountList[vipLV] if len(gmLVLimitBuyCountList) > vipLV else gmLVLimitBuyCountList[-1]
        if hadBuyCount + buyCount > maxBuyCount:
            GameWorld.DebugLog("幸运云购购买次数限制! hadBuyCount=%s,buyCount=%s,curGMLV=%s,maxBuyCount=%s,crossServerDateTime=%s"
                               % (hadBuyCount, buyCount, curGMLV, maxBuyCount, crossServerDateTime))
            GameWorld.DebugLog("幸运云购购买次数限制! hadBuyCount=%s,buyCount=%s,vipLV=%s,maxBuyCount=%s,crossServerDateTime=%s"
                               % (hadBuyCount, buyCount, vipLV, maxBuyCount, crossServerDateTime))
            return
        
    buyCountCostMoneyDict = IpyGameDataPY.GetFuncEvalCfg("LuckyCloudBuyCost", 1, {})