Merge remote-tracking branch 'origin/master'
This commit is contained in:
+3
@@ -4,6 +4,7 @@ import java.io.IOException;
|
|||||||
|
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
||||||
|
|
||||||
|
import com.fangjia.core.util.DingDingMessageUtil;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.sothis.web.mvc.ActionContext;
|
import org.sothis.web.mvc.ActionContext;
|
||||||
@@ -16,6 +17,8 @@ public class FangjiaOpenExceptionHandler implements ExceptionHandler {
|
|||||||
if (LOGGER.isErrorEnabled()) {
|
if (LOGGER.isErrorEnabled()) {
|
||||||
LOGGER.error("", e);
|
LOGGER.error("", e);
|
||||||
}
|
}
|
||||||
|
String token = "2307d2fec8314b3e8b4b83dd1d42da2e2051638e3e668f21e77ca01258bf682c";
|
||||||
|
DingDingMessageUtil.sendTextMessage(token, "[OpenApi]服务器内部错误,请及时关注!");
|
||||||
ActionContext context = ActionContext.getContext();
|
ActionContext context = ActionContext.getContext();
|
||||||
context.getResponse().setStatus(500);
|
context.getResponse().setStatus(500);
|
||||||
context.getResponse().setCharacterEncoding("UTF-8");
|
context.getResponse().setCharacterEncoding("UTF-8");
|
||||||
|
|||||||
Reference in New Issue
Block a user