9265 【BT5】【后端】53、新增幸运云购(主干 BTGM等级限制购买次数改为VIP等级限制)
| | |
| | | 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函数
|
| | |
| | | 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值与当天时间对比是否为游戏内的同一天;特殊时间点过天后才算不同天
|
| | | 该函数一般用于判断某个功能记录的版本天是否与当天时间是同一天的逻辑
|
| | |
| | | % (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, {})
|