Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noobpwnftw committed Jul 3, 2023
1 parent f808f98 commit 9f64cd1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/query/file/xiangqi.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,10 @@ function RequestQueue() {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">当前局面无效!<\/span>';
}
else if(xmlhttpQueue.responseText.search(/exceeded/) != -1) {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">查询过于频繁!<\/span>';
}
else {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">当前局面棋子过少,您可以:<table style="margin-left: auto;margin-right: auto;"><tr><td onClick="AutoMove()" class="button">&nbsp;自动走棋&nbsp;<\/td><\/tr><\/table><\/span>';
Expand Down
4 changes: 4 additions & 0 deletions web/query_en/file/xiangqi.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,10 @@ function RequestQueue() {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">Invalid board!<\/span>';
}
else if(xmlhttpQueue.responseText.search(/exceeded/) != -1) {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">Query rate limit exceeded!<\/span>';
}
else {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">Too few pieces on the board, you can:<table style="margin-left: auto;margin-right: auto;"><tr><td onClick="AutoMove()" class="button">&nbsp;AI move&nbsp;<\/td><\/tr><\/table><\/span>';
Expand Down
4 changes: 4 additions & 0 deletions web/queryc/file/cdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@ function RequestQueue() {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">当前局面无效!<\/span>';
}
else if(xmlhttpQueue.responseText.search(/exceeded/) != -1) {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">查询过于频繁!<\/span>';
}
else {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">当前局面棋子过少,您可以:<table style="margin-left: auto;margin-right: auto;"><tr><td onClick="AutoMove()" class="button">&nbsp;自动走棋&nbsp;<\/td><\/tr><\/table><\/span>';
Expand Down
4 changes: 4 additions & 0 deletions web/queryc_en/file/cdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@ function RequestQueue() {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">Invalid board!<\/span>';
}
else if(xmlhttpQueue.responseText.search(/exceeded/) != -1) {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">Query rate limit exceeded!<\/span>';
}
else {
ClearInner();
Vout.innerHTML += '<span style="text-align:center; display:block;">Too few pieces on the board, you can:<table style="margin-left: auto;margin-right: auto;"><tr><td onClick="AutoMove()" class="button">&nbsp;AI move&nbsp;<\/td><\/tr><\/table><\/span>';
Expand Down

0 comments on commit 9f64cd1

Please sign in to comment.