소스 검색

修改发放优惠券开始时间

locky 8 달 전
부모
커밋
e29316b615
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)