Reiskuchen 5 년 전
부모
커밋
0a094d9f13
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      minigame/WebContent/static/lottery.html

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

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