From fbd5cdc718dc218d71198e9ad4ab66ed68b80182 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 08 十二月 2022 15:00:44 +0800
Subject: [PATCH] 4075 【后端】【BT7】【BT8】【主干】【越南】限时抢购找不到活动配置数据时报错防范

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashSale.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashSale.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashSale.py
index fd421cf..ceb9839 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashSale.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashSale.py
@@ -79,6 +79,8 @@
         isReset = True
         if cfgID:
             flashSaleIpyData = IpyGameDataPY.GetIpyGameData("ActFlashSale", cfgID)
+            if not flashSaleIpyData:
+                return
             startDate, _ = GameWorld.GetOperationActionDateStr(flashSaleIpyData)
             startTimeNum = GameWorld.ChangeTimeStrToNum(startDate, timeFormat=ChConfig.TYPE_Time_Format_Day)
         else:

--
Gitblit v1.8.0