From 9cc951735a050ea8d5c8330af656dfdf2b6b5b7c Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 23 三月 2021 10:37:45 +0800
Subject: [PATCH] 8803 【BT2】【后端】Part1 10、1元送30倍充值券(后端同步第X周 A005)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py |    4 ++++
 1 files changed, 4 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 aa6a61e..dfff203 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -655,6 +655,10 @@
 #        
 #    return returnTime
 
+def GetWeekOfYear():
+    ## 一年中的第几周, 1代表第1周
+    return datetime.datetime.isocalendar(datetime.datetime.today())[1]
+
 #---------------------------------------------------------------------
 ##获得系统时间
 # @param timeStr 输入的字符串

--
Gitblit v1.8.0