hxt 2 éve
szülő
commit
8d87235a5e
2 módosított fájl, 7 hozzáadás és 5 törlés
  1. 6 4
      js/game.js
  2. 1 1
      page.html

+ 6 - 4
js/game.js

@@ -1,10 +1,12 @@
-var baseUrl = "gj.100t.com/";
+var baseUrl = "gj.100t.com";
 var registUrl = "http://" + baseUrl + "/api/quepass/regist";
 var ansPostUrl = "http://" + baseUrl + "/api/quepass/anspost";
 var wsCountUrl = "ws://" + baseUrl + "/ws/quepass/onlinecounter";
 var wsWaitUrl = "ws://" + baseUrl + "/ws/quepass/onlinewaiting";
 var $box = $("#figureBox"),
+
 	people = 0;
+
 var me = {
 	row: 1,
 	col: 1
@@ -60,14 +62,13 @@ var uid = getQueryString('uid');
 var uname = getQueryString('uname');
 var round_id = getQueryString('round_id');
 if (!uid || !uname) {
-	// window.location.href = "https://www.100t.com/gjnh/2022.php";
+	window.location.href = "https://www.100t.com/gjnh/2022.php";
 } else {
 	$.post(registUrl, JSON.stringify({
 		uid,
 		uname
 	}), function(res) {
 		if (res.status == 0 && res.game_status == 0) {
-
 			$load.fadeOut(function() {
 				$(this).remove();
 				init();
@@ -331,7 +332,8 @@ function reconnect(service) {
 }
 var isWait = true;
 
-	var timer = null;
+var timer = null;
+
 function waiting(callback) {
 	var ws = new WebSocket(wsWaitUrl);
 	ws.onopen = function() {

+ 1 - 1
page.html

@@ -74,7 +74,7 @@
 	<script>
 		var limitConnect = 3;  // 断线重连次数
 		var timeConnect = 0;
-		var baseUrl = "47.108.130.28:9000";
+		var baseUrl = "gj.100t.com";
 		var wsWaitUrl = "ws://" + baseUrl + "/ws/quepass/onlinewaiting";
 		var startGameUrl="http://"+baseUrl+"api/quepass/status";
 		function webSocketInit(service) {