update

FFIB 19 小时之前
父节点
当前提交
3547afd981
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      api/encrypt_views.py

+ 1 - 1
api/encrypt_views.py

@@ -267,7 +267,7 @@ def decrypt2(request, v='v2'):
267 267
         activities = ActivityInfo.objects.filter(status=True).order_by('-pk')
268 268
         coupon_infos = [act.coupon_info3 for act in activities if act.has_unexpired_activity(model.model_name)]
269 269
     
270
-    if dupload or unbound:  
270
+    if not dupload and not unbound:  
271 271
         lotterys = LotteryCampaignInfo.objects.filter(status=True)
272 272
         if lotterys.exists():
273 273
             active_lotterys = [lottery.data for lottery in lotterys if lottery.is_active() and model.model_uni_name in lottery.model_ids]