资源简介

微信开发demo(用于接收公众号的异步通知消息)

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.xml;
using System.Web.Security;
using System.IO;
using System.Text;

namespace BigDataMedia.Web.WeiXin
{
    /// 
    /// WeixinApi 测试所用,简单判断类型自动回复。
    /// 


    //post请求
    public class WeixinApi : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            weixin wx = new weixin();
            String postStr = String.Empty;

            if (HttpContext.Current.Request.HttpMethod.ToUpper() == “POST“)
            {
                Stream s = HttpContext.Current.Request.InputStream;
                Byte[] b = new Byte[s.Length];
                s.Read(b 0 (Int32)s.Length);
                postStr = Encodin

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       7997  2018-07-11 17:23  weixin_jiekou\weixin_jiekou\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件       1337  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\Properties\AssemblyInfo.cs

     文件        340  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\Web.config

     文件       1245  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\Web.Debug.config

     文件       1306  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\Web.Release.config

     文件       4996  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\weixin_jiekou.csproj

     文件       1086  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\weixin_jiekou.csproj.user

     文件         97  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\wexinapi.ashx

     文件       8150  2018-07-12 10:15  weixin_jiekou\weixin_jiekou\wexinapi.ashx.cs

     文件       1008  2018-07-11 17:19  weixin_jiekou\weixin_jiekou.sln

    ..A..H.     29696  2018-07-12 10:15  weixin_jiekou\weixin_jiekou.v12.suo

     目录          0  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\obj\Debug\TempPE

     目录          0  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\obj\Debug

     目录          0  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\bin

     目录          0  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\obj

     目录          0  2018-07-11 17:19  weixin_jiekou\weixin_jiekou\Properties

     目录          0  2018-07-12 10:15  weixin_jiekou\weixin_jiekou

     目录          0  2018-07-11 17:19  weixin_jiekou

----------- ---------  ---------- -----  ----

                57258                    21


评论

共有 条评论