| | |
| | | lotteryRecList = PyGameData.g_luckyCloudBuyLotteryDict.get(zoneID, [])
|
| | | lastLotteryRec = None if not lotteryRecList else lotteryRecList[-1]
|
| | | if lastLotteryRec and not lastLotteryRec.lotteryNum:
|
| | | GameWorld.Log("幸运云购重置,当前轮次未开奖,直接开奖! cfgID=%s,zoneID=%s" % (lastLotteryRec.cfgID, zoneID))
|
| | | startNewLottery = DoLuckyCloudBuyLottery(lastLotteryRec, True, "Reset")
|
| | | |
| | | buyRecList = PyGameData.g_luckyCloudBuyNumDict.get(zoneID, [])
|
| | | if buyRecList:
|
| | | GameWorld.Log("幸运云购重置,当前轮次未开奖,直接开奖! cfgID=%s,zoneID=%s" % (lastLotteryRec.cfgID, zoneID))
|
| | | startNewLottery = DoLuckyCloudBuyLottery(lastLotteryRec, True, "Reset")
|
| | | else:
|
| | | GameWorld.Log("幸运云购重置,当前轮次无购买记录,不开奖! cfgID=%s,zoneID=%s,%s" % (lastLotteryRec.cfgID, zoneID, lastLotteryRec.GetString()))
|
| | | popLotteryRec = lotteryRecList.pop(-1)
|
| | | if popLotteryRec:
|
| | | GameWorld.Log("移除无效轮次信息 %s" % popLotteryRec.GetString())
|
| | | |
| | | if state and not startNewLottery:
|
| | | GameWorld.Log("幸运云购重置,当前没有未开奖的轮次,直接开启新一轮! cfgID=%s,zoneID=%s" % (cfgID, zoneID))
|
| | | DoStartNewRoundLuckyCloudBuy(cfgID, 1)
|
| | |
| | | clientPack.ZoneID = zoneID
|
| | | clientPack.StartDate = ipyDataInfo.get("StartDate", "")
|
| | | clientPack.EndtDate = ipyDataInfo.get("EndDate", "")
|
| | | clientPack.LVLimit = ipyDataInfo.get("LVLimit", 0)
|
| | | clientPack.RoundID = lotteryRec.idTime
|
| | | clientPack.RoundNum = lotteryRec.roundNum
|
| | | clientPack.SuperItemID = superItemID
|