Beispiel #1
0
        public void ProcessRequest(HttpContext context)
        {
            LogHelper.Write("----------------------分割线--------------------------");
            if (TokenModel.token == null)
            {
                LogHelper.Write("获取新的token");
                TokenModel.getAccesss_Token();
            }
            //Response.Write("<script>location.href='Test.html'</script>");
            if (flag)
            {
                createMenu();
                flag = false;
            }
            string postString = string.Empty;

            if (HttpContext.Current.Request.HttpMethod.ToUpper() == "POST")
            {
                using (Stream stream = HttpContext.Current.Request.InputStream)
                {
                    Byte[] postBytes = new Byte[stream.Length];
                    stream.Read(postBytes, 0, (Int32)stream.Length);
                    postString = Encoding.UTF8.GetString(postBytes);
                    HandleModel.Handle(postString);
                    LogHelper.Write(postString);
                }
            }
        }
Beispiel #2
0
        public void ProcessRequest(HttpContext context)
        {
            LogHelper.Write("----------------------分割线111--------------------------");
            //接通测试
            //InterfaceTest();
            //事件响应
            string postString = response(context);

            HandleModel.Handle(postString);
        }