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