Beispiel #1
0
 ///取得单例类实例
 public static DdOperator GetDdApi()
 {
     if (_instance == null)
     {
         _instance = new DdOperator();
     }
     return(_instance);
 }
Beispiel #2
0
 /// <summary>
 /// 初始化消息发送器
 /// </summary>
 /// <param name="oper">钉钉控制器</param>
 public DdMsgOper(DdOperator oper)
 {
     url    = string.Format(url, oper.AccessToken);
     myoper = oper;
 }