From 73db88001e8d15a2e061e063196161e7dd7ca844 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 21 九月 2018 20:00:35 +0800
Subject: [PATCH] 1993 【bug】开服定制消费返利活动结束无系统提示,开服14天后新开消费返利有结束提示
---
ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py
index 2da65a4..07dd7b7 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py
@@ -156,7 +156,8 @@
# 按开服天开的
if startDateStr.isdigit() and endDateStr.isdigit():
startServerDay, endServerDay = int(startDateStr), int(endDateStr)
- if openServerDay > endServerDay:
+ #结束日可能还需要处理广播之类,所以这里需要+1
+ if openServerDay > endServerDay + 1:
GameWorld.Log(" 当前开服天超过活动结束开服天,不处理! cfgID=%s,%s ~ %s < openServerDay(%s)" % (cfgID, startDateStr, endDateStr, openServerDay))
continue
openServerDateTime = curDateTime + datetime.timedelta(days=(startServerDay-openServerDay))
--
Gitblit v1.8.0