hxt 2 سال پیش
والد
کامیت
f2c412972d
3فایلهای تغییر یافته به همراه5 افزوده شده و 8 حذف شده
  1. 1 1
      gameready.html
  2. 0 3
      index.html
  3. 4 4
      js/game.js

+ 1 - 1
gameready.html

@@ -210,7 +210,7 @@
 				<div></div>
 				<div></div>
 				<p class="wait-text">游戏已经开始,请等待下一轮</p>
-				<a href="https://www.100t.com/gjnh/2022.php"class="btn"><img src="img/btn.png"></a>
+				<a href="http://gjnh.100t.com/gjnh/index.php/Index/"class="btn"><img src="img/btn.png"></a>
 			</div>
 		</section>
 	</body>

+ 0 - 3
index.html

@@ -81,9 +81,6 @@
 				document.addEventListener("WeixinJSBridgeReady", function() {
 					audio.pause();
 				}, false);
-				document.addEventListener('YixinJSBridgeReady', function() {
-					audio.pause();
-				}, false);
 			}
 			audioAutoPlay('music');
 			

+ 4 - 4
js/game.js

@@ -68,7 +68,7 @@ function preload(imgs, callback) {
 }
 
 if (!uid || !uname) {
-	// window.location.href = "http://www.100t.com/gjnh/2022.php";
+	window.location.href = "http://gjnh.100t.com/gjnh/index.php/Index/";
 } else {
 	registUrl = registUrl + "/"+uid
 	$.post(registUrl, JSON.stringify({
@@ -337,7 +337,7 @@ function reconnect(service) {
 }
 var isWait = true;
 var timer = null;
-
+var limit=getQueryString("limit")||1;
 function waiting(callback) {
 	wsWaitUrl = wsWaitUrl +"/"+uid;
 	var ws = new WebSocket(wsWaitUrl);
@@ -365,12 +365,12 @@ function waiting(callback) {
 			clearTimeout(quesTimer);
 			success();
 		}
-		/* if(res.status == 1 && !isWait && res.data.length<100){
+		if(res.status == 1 && !isWait && res.data.length<=limit){
 			isQuesEnd = true;
 			clearTimeout(quesTimer);
 			window.clearInterval(timer);
 			success();
-		} */
+		}
 		$ren.html(res.data.length);
 	}
 	ws.onclose = function() {