chenjunkai 5 rokov pred
rodič
commit
994ee94061
2 zmenil súbory, kde vykonal 3 pridanie a 13 odobranie
  1. 1 1
      controller/Lottery.py
  2. 2 12
      web/lottery/index.html

+ 1 - 1
controller/Lottery.py

@@ -150,7 +150,7 @@ class drawView(TemplateView):
                 test = randomMachine()
                 # status c611=>1 , c612=>2 ,不中间=>3
                 # 权重
-                test.setWeight({1: 1, 2: 1, 3: 3})
+                test.setWeight({1: 1, 2: 1, 3: 50})
                 has_chow = test.drawing()
                 user = phoneNumModel.objects.filter(phone=phone)
 

+ 2 - 12
web/lottery/index.html

@@ -253,7 +253,7 @@
             http_ip_prot + 'lottery/authcode', JSON.stringify(post_data),
             function (data) {
                 if (data['code'] == 0) {
-
+                    alert(data['msg'])
                 } else {
                     alert(data['msg'])
                 }
@@ -489,17 +489,7 @@
         }
     }
     // 捕捉全局异常弹出
-function handleError(msg,url,l)
-{
-    var txt="There was an error on this page.\n\n"
-    txt+="Error: " + msg + "\n"
-    txt+="URL: " + url + "\n"
-    txt+="Line: " + l + "\n\n"
-    txt+="Click OK to continue.\n\n"
-    alert(txt)
-    return true
-}
-window.onerror = handleError
+
 </script>
 </body>
 </html>