Beispiel #1
0
 /// <summary>
 ///   文本消息处理事件
 /// </summary>
 /// <param name="arg"></param>
 /// <returns></returns>
 private BaseReplyMsg WxMsgService_TextHandler(TextRecMsg arg)
 {
     return(new TextReplyMsg()
     {
         Content = "欢迎使用开源产品,记得贡献"
     });
 }
 private BaseReplyMsg WxBasicMsgService_TextHandler(TextRecMsg arg)
 {
     if (arg.Content == "oss")
     {
         return(new TextReplyMsg()
         {
             Content = "欢迎关注.Net开源世界!"
         });
     }
     return(null);
 }