Browse Source

quanzhong

chenjunkai 5 năm trước cách đây
mục cha
commit
9d2d71a41e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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:
                 # 您已抽过奖