From fc4c17b5e12719d0c83a7c2d904e0d2b1c337f13 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 01 九月 2022 15:18:07 +0800
Subject: [PATCH] 9265 5427 【主干】【越南】修复幸运云购结束多显示了一场空场开奖记录

---
 ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossLuckyCloudBuy.py |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossLuckyCloudBuy.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossLuckyCloudBuy.py
index 723766b..abc019c 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossLuckyCloudBuy.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossLuckyCloudBuy.py
@@ -435,9 +435,16 @@
     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)

--
Gitblit v1.8.0