|
@@ -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:
|
|
|
# 您已抽过奖
|