コード例 #1
0
        /// <summary>
        /// 输出图文消息
        /// </summary>
        /// <param name="article"></param>
        /// <returns></returns>
        protected WeiXinArticleResult WeiXinArticle(Article article)
        {
            WeiXinArticleResult result = new WeiXinArticleResult();

            result.Add(article);
            return(result);
        }
コード例 #2
0
        /// <summary>
        /// 输出图文消息
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        protected WeiXinArticleResult WeiXinArticle(List <Article> list)
        {
            WeiXinArticleResult result = new WeiXinArticleResult();

            foreach (Article item in list)
            {
                result.Add(item);
            }

            return(result);
        }