1、优化全局异常企业微信通知模板内容 2、新增企业微信发送测试接口

This commit is contained in:
不做码农
2023-05-18 22:02:59 +08:00
parent 1e00abd6f9
commit dac5f8bbef
4 changed files with 26 additions and 30 deletions

View File

@@ -49,6 +49,22 @@ namespace ZR.Admin.WebApi.Controllers
"如果觉得项目有用,打赏作者喝杯咖啡作为奖励\n☛☛http://www.izhaorui.cn/doc/support.html\n");
}
/// <summary>
/// 企业消息测试
/// </summary>
/// <param name="msg">要发送的消息</param>
/// <param name="toUser">要发送的人@all所有xxx单独发送对个人</param>
/// <returns></returns>
[Route("/sendMsg")]
[HttpGet]
[Log(Title = "企业消息测试")]
public IActionResult SendMsg(string msg, string toUser = "")
{
throw new Exception("ddddd");
WxNoticeHelper.SendMsg("消息测试", msg, toUser, WxNoticeHelper.MsgType.markdown);
return SUCCESS(msg);
}
/// <summary>
/// 发送邮件
/// </summary>