Reiskuchen 5 years ago
parent
commit
0a094d9f13
1 changed files with 3 additions and 2 deletions
  1. 3 2
      minigame/WebContent/static/lottery.html

+ 3 - 2
minigame/WebContent/static/lottery.html

@@ -37,16 +37,17 @@
                 if(enable == true){
                 if(enable == true){
                 	
                 	
                 	//获取
                 	//获取
-                    $.post("../prize/luckDraw", {userId: 1}, function(resp) {
+                    $.post("../prize/luckDraw", {userId: 6}, function(resp) {
         				if (resp.code == 'error') {
         				if (resp.code == 'error') {
         					console.log(resp.code);
         					console.log(resp.code);
+        					alert(resp.msg);
         				}else{
         				}else{
         					console.log(resp);
         					console.log(resp);
         					//进入不可点击状态
         					//进入不可点击状态
                             enable = false;
                             enable = false;
                             //设置初始速度
                             //设置初始速度
                             speed = 60;
                             speed = 60;
-                            //设置要中奖的位置
+                            //设置要中奖的位置 0手账 2 1升 4谢谢惠顾 5肥皂 6 12瓶 7 500毫升
                             threshold = 7;
                             threshold = 7;
                             //配置移动次数
                             //配置移动次数
                             last = 56 + threshold - current;
                             last = 56 + threshold - current;