Esempio n. 1
0
        /// <summary>
        /// 接收文本
        /// </summary>
        /// <param name="FromUserName"></param>
        /// <param name="ToUserName"></param>
        /// <param name="Content"></param>
        /// <returns></returns>
        public static string GetText(string FromUserName, string ToUserName, string Content)
        {
            CommonMethod.WriteTxt(Content);//接收的文本消息
            string XML = "";

            switch (Content)
            {
            case "ok":
                XML = ReText(FromUserName, ToUserName, "测试确实ok!");
                break;

            case "我擦":
                XML = ReArticle(FromUserName, ToUserName, "我擦成功了", "点击查看", "http:xxx.com/xxx.png", "http://xxx.com");
                break;

            default:
                XML = ReText(FromUserName, ToUserName, "测试正常");
                break;
            }
            return(XML);
        }