mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-30 01:46:18 +08:00
ticket submit api
This commit is contained in:
25
src/main/java/love/sola/netsupport/util/Redirect.java
Normal file
25
src/main/java/love/sola/netsupport/util/Redirect.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package love.sola.netsupport.util;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* ***********************************************
|
||||
* Created by Sola on 2015/12/6.
|
||||
* Don't modify this source without my agreement
|
||||
* ***********************************************
|
||||
*/
|
||||
public class Redirect {
|
||||
|
||||
public static final String REDIRECT_PAGE = "http://topaz.sinaapp.com/nm/result.html";
|
||||
|
||||
public static void message(HttpServletResponse response, int type, String message) throws IOException {
|
||||
response.sendRedirect(
|
||||
response.encodeRedirectURL(REDIRECT_PAGE +
|
||||
"?msg=" + message +
|
||||
"&type=" + type
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user