From 4e6e4d465f427db411fb1d430acc943c24277525 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 24 六月 2024 17:12:54 +0800
Subject: [PATCH] 10185 【越南】【港台】【主干】BOSS凭证修改(修复本服未开放仙盟榜活动时结算报错;)

---
 ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
index 513bc0e..03aa70c 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
@@ -550,6 +550,16 @@
     if cfgID == None or dayIndex == None or not ipyData:
         return 0
     templateIDList = ipyData.GetTemplateIDList()
+    if not templateIDList:
+        return 0
+    templateID = templateIDList[-1] if dayIndex >= len(templateIDList) else templateIDList[dayIndex]
+    return templateID
+
+def GetTemplateIDByList(templateIDList, dayIndex):
+    if dayIndex == None:
+        return 0
+    if not templateIDList:
+        return 0
     templateID = templateIDList[-1] if dayIndex >= len(templateIDList) else templateIDList[dayIndex]
     return templateID
 

--
Gitblit v1.8.0