1、优化全局异常企业微信通知模板内容 2、新增企业微信发送测试接口
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user