Pārlūkot izejas kodu

修改发放优惠券开始时间

locky 8 mēneši atpakaļ
vecāks
revīzija
e29316b615
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Controller/SysManage.py

+ 1 - 1
Controller/SysManage.py

@@ -142,7 +142,7 @@ def initMsgFunc(request):
     start_time, end_time = ConstantEnum.PROMOTION_START_TIME.value, ConstantEnum.PROMOTION_END_TIME.value
     # 缓存过期时间
     expire = end_time - now_time
-    if expire > 0:
+    if now_time > start_time and expire > 0:
         redis_obj = RedisObject()
         distribute_key = RedisKeyConstant.CLOUD_STORAGE_COUPONS.value + userID
         is_distributed = redis_obj.get_data(distribute_key)