From 239a75e02bdbbd8d8c04c09be7fab50fafb23670 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 23 四月 2021 18:13:00 +0800
Subject: [PATCH] 8901 【BT2】【后端】全服红包(VIP抢全服红包次数配置keyVIP等级改为字符串 RechargeRedPacket 数值3)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyRedPacket.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyRedPacket.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyRedPacket.py
index 4e2b21a..174cbb7 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyRedPacket.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyRedPacket.py
@@ -303,11 +303,11 @@
#获取全服红包可抢次数
# @return: -1为不限
vipLVMaxGrabCntDict = IpyGameDataPY.GetFuncEvalCfg("RechargeRedPacket", 3, {})
- vipLVList = vipLVMaxGrabCntDict.keys()
+ vipLVList = [int(vipStr) for vipStr in vipLVMaxGrabCntDict.keys()]
vipLVList.sort()
for vipLV in vipLVList:
if curPlayer.GetVIPLv() <= vipLV:
- maxGrabCnt = vipLVMaxGrabCntDict[vipLV]
+ maxGrabCnt = vipLVMaxGrabCntDict[str(vipLV)]
if not maxGrabCnt:
return -1
todayGrabCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ServerRedPacketGrabCnt)
--
Gitblit v1.8.0