Merge remote-tracking branch 'origin/master'

This commit is contained in:
majintao
2024-09-18 11:30:04 +08:00
@@ -4,6 +4,7 @@ import java.io.IOException;
import javax.servlet.ServletException;
import com.fangjia.core.util.DingDingMessageUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sothis.web.mvc.ActionContext;
@@ -16,6 +17,8 @@ public class FangjiaOpenExceptionHandler implements ExceptionHandler {
if (LOGGER.isErrorEnabled()) {
LOGGER.error("", e);
}
String token = "2307d2fec8314b3e8b4b83dd1d42da2e2051638e3e668f21e77ca01258bf682c";
DingDingMessageUtil.sendTextMessage(token, "[OpenApi]服务器内部错误,请及时关注!");
ActionContext context = ActionContext.getContext();
context.getResponse().setStatus(500);
context.getResponse().setCharacterEncoding("UTF-8");