ticket submit api

This commit is contained in:
Sola
2015-12-06 05:03:37 +08:00
parent 81a502e6cf
commit 5d38f3270f
11 changed files with 157 additions and 26 deletions

View 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
)
);
}
}