新增钉钉消息

This commit is contained in:
沈健
2024-09-14 16:54:27 +08:00
parent 9ce61bc2fa
commit 2ad357c180
@@ -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");