chenjunkai 5 лет назад
Родитель
Сommit
9d2d71a41e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      controller/Lottery.py

+ 2 - 2
controller/Lottery.py

@@ -148,7 +148,7 @@ class drawView(TemplateView):
             phone = tko.userID
             qs = phoneNumModel.objects.filter(phone=phone, status=0)
             if True:
-            # if qs.exists():
+                # if qs.exists():
                 # status c611=>1 , c612=>2 ,不中间=>3
                 # 权重
                 test = randomMachine()
@@ -183,7 +183,7 @@ class drawView(TemplateView):
                 # 如果抽奖额度满了
                 print(has_chow)
 
-            # user.update(status=has_chow)
+                user.update(status=has_chow)
                 return response.json(0, {'status': has_chow})
             else:
                 # 您已抽过奖