Commit 485644f0 by agan

解決會返回的bug

parent 344c9e6c
Showing with 5 additions and 2 deletions
...@@ -13,7 +13,7 @@ function url_get_params() { ...@@ -13,7 +13,7 @@ function url_get_params() {
var icid = url_get_params().mrefer; var icid = url_get_params().mrefer;
if (!icid) { if (!icid) {
icid = window.location.href; icid = window.location.href;
}else{ } else {
icid = icid.split('/').pop(); icid = icid.split('/').pop();
} }
function viewPage(callback) { function viewPage(callback) {
...@@ -57,7 +57,10 @@ function checkIp() { ...@@ -57,7 +57,10 @@ function checkIp() {
var result = JSON.parse(res); var result = JSON.parse(res);
if (result.code === 1) { if (result.code === 1) {
if (result.checkResult) { if (result.checkResult) {
window.location.href = 'content.html?ip=' + result.ip window.location.hash = "no-back";
window.location.hash = "Again-No-back-button";
window.onhashchange = function () { window.location.hash = "no-back"; }
window.location.href = 'content.html?ip=' + result.ip;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment