using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Admin.NET.Core; public class DingDingHook { /// /// 钉钉消息推送 /// /// /// public static void DingTalkHookMessage(string controllername, string message) { try { string title = "weipay"; DingtalkChatbotSdk.DingDingClient.SendMessageAsync("https://oapi.dingtalk.com/robot/send?access_token=879f3d3511b90d2e13080f0f729d9c65c3e6737de76c6074da3b98f8e432cef0", string.Format("title:{0};message:{1}", title, message)); } catch (Exception ex) { } } }