新增企业微信通知
This commit is contained in:
@@ -10,6 +10,7 @@ using System.Text.Encodings.Web;
|
||||
using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Common;
|
||||
using ZR.Model.System;
|
||||
using ZR.Service.System.IService;
|
||||
|
||||
@@ -119,7 +120,7 @@ namespace ZR.Admin.WebApi.Middleware
|
||||
Logger.Log(ei);
|
||||
context.Response.ContentType = "text/json;charset=utf-8";
|
||||
await context.Response.WriteAsync(responseResult, System.Text.Encoding.UTF8);
|
||||
|
||||
WxNoticeHelper.SendMsg("系统出错", sysOperLog.errorMsg);
|
||||
SysOperLogService.InsertOperlog(sysOperLog);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,13 @@
|
||||
"bucketName": "bucketName",
|
||||
"domainUrl": "http://xxx.xxx.com" //访问资源域名
|
||||
},
|
||||
//企业微信通知配置
|
||||
"WxCorp": {
|
||||
"AgentID": "",
|
||||
"CorpID": "",
|
||||
"CorpSecret": "",
|
||||
"SendUser": "@all"
|
||||
},
|
||||
"gen": {
|
||||
"conn": "Data Source=LAPTOP-STKF2M8H\\SQLEXPRESS;User ID=sa;Password=zradmin123;Initial Catalog=ZrAdmin;Integrated Security=SSPI",
|
||||
"dbType": 1, //MySql = 0, SqlServer = 1
|
||||
|
||||
Reference in New Issue
Block a user