Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Stopwatch watch1 = new Stopwatch();

            watch1.Start();
            info info = new info();
            JavaScriptSerializer serializer = new JavaScriptSerializer();
            NameValueCollection  req        = PublicClass.FillFromEncodedBytes(base.Request.BinaryRead(base.Request.ContentLength), Encoding.UTF8);

            try
            {
                if (req["excode"].Length > 0)
                {
                    info.code    = 1;
                    info.message = "成功";
                    info.data    = loaddata(req["excode"]);
                }
                else
                {
                    info.code    = 0;
                    info.message = "失败";
                }
            }
            catch (Exception ex)
            {
                //new Thread(() => errorBll.log("interface_ExchangeData", ex.ToString(), "")).Start();
            }

            string str = serializer.Serialize(info);

            Response.Write(str);
            watch1.Stop();
            //new Thread((ThreadStart)(() => log_interfaceBll.add("wx_mko2oorder", Convert.ToInt32(watch1.ElapsedMilliseconds)))).Start();
        }