diff --git a/install/fr-plugin-H5-request-preHandle-1.0.zip b/install/fr-plugin-H5-request-preHandle-1.0.zip index 14ff59f..9771804 100644 Binary files a/install/fr-plugin-H5-request-preHandle-1.0.zip and b/install/fr-plugin-H5-request-preHandle-1.0.zip differ diff --git a/plugin.xml b/plugin.xml index 4673931..7f55cb6 100755 --- a/plugin.xml +++ b/plugin.xml @@ -1,11 +1,11 @@ - com.fr.plugin.passport + com.fr.plugin.request.prehandle yes 1.0 10.0~ - 2019-04-08 + 2019-04-01 zed + + 4.0.0 + + + com.fr.plugin + starter + 10.0 + + jar + decision-request-prehandle + \ No newline at end of file diff --git a/prehandle.iml b/prehandle.iml deleted file mode 100644 index 78844c7..0000000 --- a/prehandle.iml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/java/com/fr/plugin/decision/MobileH5RequestPreHandle.java b/src/main/java/com/fr/plugin/decision/MobileH5RequestPreHandle.java index 6d50341..72228d2 100644 --- a/src/main/java/com/fr/plugin/decision/MobileH5RequestPreHandle.java +++ b/src/main/java/com/fr/plugin/decision/MobileH5RequestPreHandle.java @@ -18,10 +18,12 @@ public class MobileH5RequestPreHandle extends AbstractRequestPreHandleProvider { } @Override - public void preHandle(HttpServletRequest req, HttpServletResponse res) { + public boolean preHandle(HttpServletRequest req, HttpServletResponse res) { try { res.sendRedirect("https://git.fanruan.com"); } catch (Exception ignore) { } + + return false; } }