From 164b1a9e2eb3f9908e95e0050de828f0e35cb74b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 23 五月 2022 16:38:31 +0800
Subject: [PATCH] 9415 【BT5】【后端】古神战场(初版:包含战场副本外的所有功能;副本中暂仅支持击杀玩家玩法)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
index 57ac0d1..4a1a011 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -1766,6 +1766,15 @@
     #DebugLog("日期相差天数大于1,不同一天!")
     return False
 
+def CheckTimeIsSameWeek(checkTime):
+    '''判断指定time值与当天时间对比是否为游戏内的同一周;特殊时间点过天后才算不同天
+    @return: 是否同一周
+    '''
+    checkDate = ChangeTimeNumToDatetime(checkTime)
+    checkWeek = datetime.datetime.isocalendar(checkDate)[1]
+    curWeek = GetWeekOfYear()
+    return checkWeek == curWeek
+
 ## 获取玩家的区服名,仅在跨服有效
 #  @param curPlayer 玩家实例
 #  @return: 区服名

--
Gitblit v1.8.0