Пример #1
0
        /// <summary>
        /// 生成文本信息
        /// </summary>
        /// <param name="toUserName"></param>
        /// <param name="fromUserName"></param>
        /// <param name="replay"></param>
        /// <returns></returns>
        public static string initText(string toUserName, string fromUserName, string replay)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic.Add("FromUserName", toUserName);
            dic.Add("ToUserName", fromUserName);
            dic.Add("MsgType", "text");
            dic.Add("CreateTime", DateTime.Now.Ticks.ToString());
            dic.Add("Content", replay);
            return(TypeChange.DictToXml(dic));
        }