Authored by 陈峰

Merge branch 'release/0606' into 'gray'

Release/0606



See merge request !306
@@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
58 "uuid": "^2.0.2", 58 "uuid": "^2.0.2",
59 "yo-cli": "=1.0.7", 59 "yo-cli": "=1.0.7",
60 "yoho-express-session": "^2.0.0", 60 "yoho-express-session": "^2.0.0",
61 - "yoho-node-lib": "=0.6.15", 61 + "yoho-node-lib": "=0.6.16",
62 "yoho-zookeeper": "^1.0.8" 62 "yoho-zookeeper": "^1.0.8"
63 }, 63 },
64 "devDependencies": { 64 "devDependencies": {
@@ -10,6 +10,12 @@ $(document).ajaxError((event, xhr) => { @@ -10,6 +10,12 @@ $(document).ajaxError((event, xhr) => {
10 } else if (xhr.responseJSON.message) { 10 } else if (xhr.responseJSON.message) {
11 new Alert(xhr.responseJSON.message).show(); 11 new Alert(xhr.responseJSON.message).show();
12 } 12 }
  13 + } else if (xhr.status === 403 && xhr.responseJSON.code === 4403) {
  14 + new Alert(xhr.responseJSON.message).show();
  15 +
  16 + setTimeout(function() {
  17 + window.location.href = `${xhr.responseJSON.data.url}&refer=${encodeURIComponent(window.location.href)}`;
  18 + }, 2000);
13 } 19 }
14 } 20 }
15 }); 21 });