diff --git a/novel-crawl/src/main/resources/templates/crawl/crawlSingleTask_add.html b/novel-crawl/src/main/resources/templates/crawl/crawlSingleTask_add.html
index ec33b81..693c91c 100644
--- a/novel-crawl/src/main/resources/templates/crawl/crawlSingleTask_add.html
+++ b/novel-crawl/src/main/resources/templates/crawl/crawlSingleTask_add.html
@@ -110,7 +110,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/novel-crawl/src/main/resources/templates/crawl/crawlSource_list.html b/novel-crawl/src/main/resources/templates/crawl/crawlSource_list.html
index 45e5dbd..35ebdbb 100644
--- a/novel-crawl/src/main/resources/templates/crawl/crawlSource_list.html
+++ b/novel-crawl/src/main/resources/templates/crawl/crawlSource_list.html
@@ -182,7 +182,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
@@ -226,7 +226,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/novel-crawl/src/main/resources/templates/crawl/crawlSource_update.html b/novel-crawl/src/main/resources/templates/crawl/crawlSource_update.html
index a339fea..00f793e 100644
--- a/novel-crawl/src/main/resources/templates/crawl/crawlSource_update.html
+++ b/novel-crawl/src/main/resources/templates/crawl/crawlSource_update.html
@@ -217,7 +217,7 @@
loadPage(data.data);
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/novel-front/src/main/resources/templates/author/index_list.html b/novel-front/src/main/resources/templates/author/index_list.html
index dd1e94f..b1f1b3c 100644
--- a/novel-front/src/main/resources/templates/author/index_list.html
+++ b/novel-front/src/main/resources/templates/author/index_list.html
@@ -273,7 +273,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}else {
layer.alert(data.msg);
diff --git a/templates/dark/html/book/book_detail.html b/templates/dark/html/book/book_detail.html
index cddc15f..b48a5cd 100644
--- a/templates/dark/html/book/book_detail.html
+++ b/templates/dark/html/book/book_detail.html
@@ -260,7 +260,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/dark/html/mobile/book/book_detail.html b/templates/dark/html/mobile/book/book_detail.html
index fc20f58..41790fb 100644
--- a/templates/dark/html/mobile/book/book_detail.html
+++ b/templates/dark/html/mobile/book/book_detail.html
@@ -260,7 +260,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/green/html/author/index_list.html b/templates/green/html/author/index_list.html
index dd1e94f..b1f1b3c 100644
--- a/templates/green/html/author/index_list.html
+++ b/templates/green/html/author/index_list.html
@@ -273,7 +273,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}else {
layer.alert(data.msg);
diff --git a/templates/orange/html/author/author_income.html b/templates/orange/html/author/author_income.html
index 3e9cc3a..7c74aaf 100644
--- a/templates/orange/html/author/author_income.html
+++ b/templates/orange/html/author/author_income.html
@@ -176,7 +176,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}else {
layer.alert(data.msg);
@@ -206,7 +206,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}else {
layer.alert(data.msg);
diff --git a/templates/orange/html/author/author_income_detail.html b/templates/orange/html/author/author_income_detail.html
index 9232f02..1ea36a8 100644
--- a/templates/orange/html/author/author_income_detail.html
+++ b/templates/orange/html/author/author_income_detail.html
@@ -182,7 +182,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}else {
layer.alert(data.msg);
@@ -212,7 +212,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}else {
layer.alert(data.msg);
diff --git a/templates/orange/html/author/index.html b/templates/orange/html/author/index.html
index d9f89ba..c6e9b4e 100644
--- a/templates/orange/html/author/index.html
+++ b/templates/orange/html/author/index.html
@@ -231,7 +231,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
@@ -261,7 +261,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/html/author/index_list.html b/templates/orange/html/author/index_list.html
index f2f6702..ad07954 100644
--- a/templates/orange/html/author/index_list.html
+++ b/templates/orange/html/author/index_list.html
@@ -213,7 +213,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
@@ -273,7 +273,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}else {
layer.alert(data.msg);
@@ -311,7 +311,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/html/book/book_content.html b/templates/orange/html/book/book_content.html
index ea960d8..8a6f8fa 100644
--- a/templates/orange/html/book/book_content.html
+++ b/templates/orange/html/book/book_content.html
@@ -380,7 +380,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/html/mobile/book/book_detail.html b/templates/orange/html/mobile/book/book_detail.html
index 705646c..5e8edf9 100644
--- a/templates/orange/html/mobile/book/book_detail.html
+++ b/templates/orange/html/mobile/book/book_detail.html
@@ -274,7 +274,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/html/mobile/pay/index.html b/templates/orange/html/mobile/pay/index.html
index 4d35510..f3bc6b8 100644
--- a/templates/orange/html/mobile/pay/index.html
+++ b/templates/orange/html/mobile/pay/index.html
@@ -182,7 +182,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/html/mobile/user/userinfo.html b/templates/orange/html/mobile/user/userinfo.html
index aa66546..793fd9d 100644
--- a/templates/orange/html/mobile/user/userinfo.html
+++ b/templates/orange/html/mobile/user/userinfo.html
@@ -244,7 +244,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/html/pay/index.html b/templates/orange/html/pay/index.html
index 7c9fa03..002a56b 100644
--- a/templates/orange/html/pay/index.html
+++ b/templates/orange/html/pay/index.html
@@ -99,7 +99,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/html/user/comment.html b/templates/orange/html/user/comment.html
index 1c080cd..a6fa3b8 100644
--- a/templates/orange/html/user/comment.html
+++ b/templates/orange/html/user/comment.html
@@ -109,7 +109,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}else {
layer.alert(data.msg);
diff --git a/templates/orange/html/user/favorites.html b/templates/orange/html/user/favorites.html
index 2f82588..efd996a 100644
--- a/templates/orange/html/user/favorites.html
+++ b/templates/orange/html/user/favorites.html
@@ -144,7 +144,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}else {
layer.alert(data.msg);
diff --git a/templates/orange/html/user/feedback.html b/templates/orange/html/user/feedback.html
index f6134c0..c326990 100644
--- a/templates/orange/html/user/feedback.html
+++ b/templates/orange/html/user/feedback.html
@@ -74,7 +74,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/html/user/feedback_list.html b/templates/orange/html/user/feedback_list.html
index d61710d..71afc5b 100644
--- a/templates/orange/html/user/feedback_list.html
+++ b/templates/orange/html/user/feedback_list.html
@@ -109,7 +109,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}else {
layer.alert(data.msg);
diff --git a/templates/orange/html/user/read_history.html b/templates/orange/html/user/read_history.html
index ba91b3e..1bc99dd 100644
--- a/templates/orange/html/user/read_history.html
+++ b/templates/orange/html/user/read_history.html
@@ -131,7 +131,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}else {
layer.alert(data.msg);
diff --git a/templates/orange/html/user/set_name.html b/templates/orange/html/user/set_name.html
index 40e8037..1a5e44f 100644
--- a/templates/orange/html/user/set_name.html
+++ b/templates/orange/html/user/set_name.html
@@ -61,7 +61,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
@@ -96,7 +96,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
$("#LabErr").html(data.msg);
diff --git a/templates/orange/html/user/set_password.html b/templates/orange/html/user/set_password.html
index 8c8d6fb..5a7af3a 100644
--- a/templates/orange/html/user/set_password.html
+++ b/templates/orange/html/user/set_password.html
@@ -72,7 +72,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
$("#LabErr").html(data.msg);
diff --git a/templates/orange/html/user/set_sex.html b/templates/orange/html/user/set_sex.html
index bc90bb7..8505107 100644
--- a/templates/orange/html/user/set_sex.html
+++ b/templates/orange/html/user/set_sex.html
@@ -58,7 +58,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
@@ -81,7 +81,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/html/user/setup.html b/templates/orange/html/user/setup.html
index 0a94c66..cb4c2e0 100644
--- a/templates/orange/html/user/setup.html
+++ b/templates/orange/html/user/setup.html
@@ -79,7 +79,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
@@ -118,7 +118,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/html/user/userinfo.html b/templates/orange/html/user/userinfo.html
index e0c1496..50c4452 100644
--- a/templates/orange/html/user/userinfo.html
+++ b/templates/orange/html/user/userinfo.html
@@ -100,7 +100,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/static/javascript/bookdetail.js b/templates/orange/static/javascript/bookdetail.js
index b9cd1ee..3e0a68d 100644
--- a/templates/orange/static/javascript/bookdetail.js
+++ b/templates/orange/static/javascript/bookdetail.js
@@ -35,7 +35,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
@@ -121,7 +121,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/templates/orange/static/mobile/js/common.js b/templates/orange/static/mobile/js/common.js
index bc6a3ea..b8b3da1 100644
--- a/templates/orange/static/mobile/js/common.js
+++ b/templates/orange/static/mobile/js/common.js
@@ -106,7 +106,7 @@ Array.prototype.remove = function (val) {
var token = $.cookie('Authorization');
if (!token) {
if (needLoginPath.indexOf(window.location.pathname) != -1) {
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
}
$(".user_link").html("登录|注册");