using System;
using System.Collections.Generic;
using System.Text;

namespace New_College.Common
{
  public  class DingHookHelper
    {
        /// <summary>
        /// 钉钉消息推送
        /// </summary>
        /// <param name="controllername"></param>
        /// <param name="title"></param>
        /// <param name="message"></param>
        public static void DingTalkHookMessage(string controllername, string message)
        {
            string title = "weipay";
            DingtalkChatbotSdk.DingDingClient.SendMessageAsync("https://oapi.dingtalk.com/robot/send?access_token=879f3d3511b90d2e13080f0f729d9c65c3e6737de76c6074da3b98f8e432cef0", string.Format("title:{0};message:{1}", title, message));

        }
    }
}
