Exemple #1
0
        public JsonResult SendCode()
        {
            XmlDocument xmlDocument = new XmlDocument();

            xmlDocument.Load(base.Server.MapPath("/App_Data/WebSite.xml"));
            string innerText = xmlDocument.SelectSingleNode("/root/TixianPhone").InnerText;
            string content   = ApplicationSettings.Get("phoneContent");
            string text      = TextUtility.CreateAuthStr(6, true);
            string text2     = CodeHelper.SendCode(innerText, text, content);

            if (text2 == "发送成功")
            {
                base.Session["txcode"] = text;
                return(Json(new
                {
                    IsOk = true,
                    Msg = "发送成功"
                }));
            }
            return(Json(new
            {
                IsOk = false,
                Msg = text2
            }));
        }
Exemple #2
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            string text = TextUtility.CreateAuthStr(4, true);

            WHCache.Default.Save <SessionCache>("VerifyCodeKey", text);
            WHCache.Default.Save <CookiesCache>("VerifyCodeKey", text);
            this.CreateImage(text);
        }
Exemple #3
0
        public JsonResult SendCode()
        {
            string     accounts       = TypeUtil.ObjectToString(base.Request["userName"]);
            Base_Users userByAccounts = FacadeManage.aidePlatformManagerFacade.GetUserByAccounts(accounts);

            if (userByAccounts == null)
            {
                return(Json(new
                {
                    IsOk = false,
                    Msg = "账号不存在"
                }));
            }
            if (!userByAccounts.IsMobileNeed)
            {
                return(Json(new
                {
                    IsOk = false,
                    Msg = "该账号不需要手机验证"
                }));
            }
            if (string.IsNullOrEmpty(userByAccounts.MobilePhone))
            {
                return(Json(new
                {
                    IsOk = false,
                    Msg = "请先设置管理员手机号码"
                }));
            }
            string content = ApplicationSettings.Get("phoneContent");
            string text    = TextUtility.CreateAuthStr(6, true);
            string text2   = CodeHelper.SendCode(userByAccounts.MobilePhone, text, content);

            if (text2 == "发送成功")
            {
                base.Session["code"] = text;
                return(Json(new
                {
                    IsOk = true,
                    Msg = "发送成功"
                }));
            }
            return(Json(new
            {
                IsOk = false,
                Msg = text2
            }));
        }
        public ActionResult GetValidateCode()
        {
            string text = TextUtility.CreateAuthStr(5, true);

            WHCache.Default.Save <SessionCache>("VerifyCodeKey", text, 5);
            VerifyImageInfo verifyImageInfo = new VerifyImageVer2().GenerateImage(text, 0, 0, Color.FromArgb(227, 227, 227), 2);
            Bitmap          image           = verifyImageInfo.Image;

            byte[] fileContents = null;
            using (MemoryStream memoryStream = new MemoryStream())
            {
                image.Save(memoryStream, ImageFormat.Bmp);
                fileContents = memoryStream.GetBuffer();
                memoryStream.Close();
            }
            return(File(fileContents, "image/pjpeg"));
        }
        protected void Page_Load(object sender, System.EventArgs e)
        {
            string formString = GameRequest.GetFormString("account");

            if (formString == "")
            {
                base.Response.Write("充值账号错误");
                base.Response.End();
            }
            int formInt = GameRequest.GetFormInt("amount", 0);

            if (formInt < 6)
            {
                base.Response.Write("充值金额不能低于6元");
                base.Response.End();
            }
            string      text        = GameRequest.GetFormString("type");
            OnLineOrder onLineOrder = new OnLineOrder();

            onLineOrder.OrderID = PayHelper.GetOrderIDByPrefix("dd");
            if (Fetch.GetUserCookie() == null)
            {
                onLineOrder.OperUserID = 0;
            }
            else
            {
                onLineOrder.OperUserID = Fetch.GetUserCookie().UserID;
            }
            onLineOrder.Accounts    = formString;
            onLineOrder.OrderAmount = formInt;
            onLineOrder.IPAddress   = GameRequest.GetUserIP();
            string text4 = text;

            switch (text4)
            {
            case "alipay":
                text = "010008";
                onLineOrder.ShareID = 2;
                goto IL_289;

            case "weixin":
                text = "010007";
                onLineOrder.ShareID = 3;
                goto IL_289;

            case "alipay-scan":
                text                = "010002";
                this.paytype        = "支付宝";
                onLineOrder.ShareID = 4;
                goto IL_289;

            case "weixin-scan":
                text                = "010001";
                this.paytype        = "微信";
                onLineOrder.ShareID = 5;
                goto IL_289;

            case "qq":
                text = "7";
                onLineOrder.ShareID = 6;
                goto IL_289;

            case "kuaijie":
                text = "010010";
                onLineOrder.ShareID = 7;
                goto IL_289;

            case "qq-scan":
                text                = "010000";
                this.paytype        = "QQ";
                onLineOrder.ShareID = 8;
                goto IL_289;

            case "jd":
                text = "6";
                onLineOrder.ShareID = 9;
                goto IL_289;

            case "baidu":
                text = "5";
                onLineOrder.ShareID = 10;
                goto IL_289;
            }
            text = "4";
            onLineOrder.ShareID = 1;
IL_289:
            Message message = FacadeManage.aideTreasureFacade.RequestOrder(onLineOrder);

            if (!message.Success)
            {
                base.Response.Write(message.Content);
                base.Response.End();
            }
            string url   = ApplicationSettings.Get("url_dd");
            string value = ApplicationSettings.Get("parter_dd");
            string str   = ApplicationSettings.Get("key_dd");
            string text2 = ApplicationSettings.Get("pay_url");

            if (text2 == "")
            {
                text2 = "http://" + base.Request.Url.Host;
            }
            string orderID = onLineOrder.OrderID;
            string value2  = text2 + "/pay/diandian/notify_url.aspx";
            string str2    = "{\"mch_app_id\":\"http://www.qp137.com\",\"device_info\":\"AND_WAP\",\"ua\":\"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36\",\"mch_app_name\":\"支付测试\",\"cashier_desk\":\"1\"}";
            string s       = System.Web.HttpUtility.UrlEncode(str2);

            byte[] bytes  = System.Text.Encoding.UTF8.GetBytes(s);
            string value3 = System.Convert.ToBase64String(bytes);

            System.Collections.Generic.Dictionary <string, string> dictionary = new System.Collections.Generic.Dictionary <string, string>();
            dictionary["version"]      = "1.0";
            dictionary["charset"]      = "utf-8";
            dictionary["merchant_id"]  = value;
            dictionary["out_trade_no"] = orderID;
            dictionary["user_ip"]      = GameRequest.GetUserIP();
            dictionary["subject"]      = "支付测试";
            dictionary["body"]         = "支付测试";
            dictionary["user_id"]      = formString;
            dictionary["total_fee"]    = formInt.ToString("#0.00");
            dictionary["notify_url"]   = value2;
            dictionary["return_url"]   = value2;
            dictionary["nonce_str"]    = TextUtility.CreateAuthStr(20, false);
            dictionary["biz_content"]  = value3;
            dictionary["trade_type"]   = text;
            dictionary = (
                from p in dictionary
                orderby p.Key
                select p).ToDictionary((System.Collections.Generic.KeyValuePair <string, string> p) => p.Key, (System.Collections.Generic.KeyValuePair <string, string> o) => o.Value);
            string str3 = PayHelper.PrepareSign(dictionary) + "&key=" + str;

            dictionary["sign"] = Jiami.MD5(str3).ToUpper();
            string param = PayHelper.ToXml(dictionary);
            string text3 = HttpHelper.HttpRequest(url, param, "post", "utf-8", "text/xml");

            System.Collections.Generic.Dictionary <string, string> dictionary2 = PayHelper.XmlToDic(text3);
            if (!dictionary2.ContainsKey("status"))
            {
                base.Response.Write(text3);
                base.Response.End();
            }
            else
            {
                string a = dictionary2["status"];
                if (a == "0")
                {
                    this.order_no     = orderID;
                    this.order_amount = formInt.ToString();
                    this.qrcode       = dictionary2["pay_info"];
                    base.Response.Redirect(this.qrcode);
                }
                else
                {
                    base.Response.Write(dictionary2["message"]);
                    base.Response.End();
                }
            }
        }
Exemple #6
0
        public static string Daifu_ruyi(string order_no, decimal amount, string full_name, string bank_card_no, string bank_code, string bankAddress, string province, string city, string host, out string flowid)
        {
            switch (bank_code)
            {
            case "ICBC":
                bank_code = "1";
                break;

            case "ABC":
                bank_code = "3";
                break;

            case "BOC":
                bank_code = "5";
                break;

            case "CCB":
                bank_code = "2";
                break;

            case "BOCOM":
                bank_code = "6";
                break;

            case "CMBCHINA":
                bank_code = "7";
                break;

            case "CGB":
                bank_code = "11";
                break;

            case "ECITIC":
                bank_code = "12";
                break;

            case "CMBC":
                bank_code = "14";
                break;

            case "CEB":
                bank_code = "8";
                break;

            case "PINGAN":
                bank_code = "18";
                break;

            case "SPDB":
                bank_code = "16";
                break;

            case "PSBC":
                bank_code = "4";
                break;

            case "HXB":
                bank_code = "10";
                break;

            case "CIB":
                bank_code = "13";
                break;
            }
            string url    = ApplicationSettings.Get("url_ruyi");
            string value  = ApplicationSettings.Get("parter_ruyi");
            string value2 = ApplicationSettings.Get("key_ruyi");
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["version"]     = "2";
            dictionary["agent_id"]    = value;
            dictionary["batch_no"]    = DateTime.Now.ToString("yyyyMMddHHmmssfff");
            dictionary["batch_amt"]   = amount.ToString("#0.00");
            dictionary["batch_num"]   = "1";
            dictionary["detail_data"] = string.Format("{0}^{1}^{2}^{3}^{4}^{5}^{6}^{7}^{8}^{9}", order_no, bank_code, 0, bank_card_no.Trim(), full_name.Trim(), amount.ToString("#0.00"), "测试", province.Trim(), city.Trim(), bankAddress.Trim());
            dictionary["notify_url"]  = "http://" + host + "/handler.aspx";
            dictionary["ext_param1"]  = TextUtility.CreateAuthStr(20, false).ToLower();
            dictionary["key"]         = value2;
            dictionary = (from p in dictionary
                          orderby p.Key
                          select p).ToDictionary((KeyValuePair <string, string> p) => p.Key, (KeyValuePair <string, string> o) => o.Value);
            string password = PayHelper.PrepareSign(dictionary);
            string text2    = dictionary["sign"] = TextEncrypt.EncryptPassword(password).ToLower();

            dictionary.Remove("key");
            string param = HttpHelper.GetParam(dictionary);
            string text3 = HttpHelper.HttpRequest(url, param, "post", "GB2312");

            flowid = "";
            if (text3.Contains("ret_code"))
            {
                XmlDocument xmlDocument = new XmlDocument();
                xmlDocument.LoadXml(text3);
                string innerText = xmlDocument.SelectSingleNode("/root/ret_code").InnerText;
                if (innerText == "0000")
                {
                    flowid = dictionary["batch_no"];
                    return("SUCCESS");
                }
                return(xmlDocument.SelectSingleNode("/root/ret_msg").InnerText);
            }
            return(text3);
        }
Exemple #7
0
        public static string Daifu_youmifu(string order_no, decimal amount, string full_name, string bank_card_no, string bank_code, string bankAddress, string province, string city, string host, out string flowid)
        {
            switch (bank_code)
            {
            case "CMBCHINA":
                bank_code = "CMB";
                break;

            case "BOCOM":
                bank_code = "COMM";
                break;

            case "ECITIC":
                bank_code = "CNCB";
                break;

            case "PINGAN":
                bank_code = "PAB";
                break;

            case "CGB":
                bank_code = "GDB";
                break;
            }
            string url   = ApplicationSettings.Get("url_ymf");
            string value = ApplicationSettings.Get("parter_ymf");
            string key   = ApplicationSettings.Get("key_ymf");
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["apiName"]     = "SINGLE_ENTRUST_SETT";
            dictionary["apiVersion"]  = "1.0.0.0";
            dictionary["platformID"]  = value;
            dictionary["merchNo"]     = value;
            dictionary["orderNo"]     = order_no;
            dictionary["tradeDate"]   = DateTime.Now.ToString("yyyyMMdd");
            dictionary["merchUrl"]    = "http://" + host + "/handler.aspx";
            dictionary["merchParam"]  = TextUtility.CreateAuthStr(20, false);
            dictionary["bankAccNo"]   = bank_card_no.Trim();
            dictionary["bankAccName"] = full_name.Trim();
            dictionary["bankCode"]    = bank_code.Trim();
            dictionary["bankName"]    = bankAddress.Trim();
            if (province.Trim() != "")
            {
                dictionary["province"] = province.Trim();
            }
            if (city.Trim() != "")
            {
                dictionary["city"] = city.Trim();
            }
            dictionary["Amt"]          = amount.ToString("#0.00");
            dictionary["tradeSummary"] = "shop";
            string sourceData = PayHelper.PrepareSign(dictionary);
            string text2      = dictionary["signMsg"] = Jiami.sign(sourceData, key);
            string param      = HttpHelper.GetParam(dictionary);
            string text3      = HttpHelper.HttpRequest(url, param);

            flowid = "";
            if (text3.Contains("respCode"))
            {
                XmlDocument xmlDocument = new XmlDocument();
                xmlDocument.LoadXml(text3);
                string innerText = xmlDocument.SelectSingleNode("/moboAccount/respData/respCode").InnerText;
                if (innerText == "00")
                {
                    string text4 = flowid = xmlDocument.SelectSingleNode("/moboAccount/respData/batchNo").InnerText;
                    return("SUCCESS");
                }
                return(xmlDocument.SelectSingleNode("/moboAccount/respData/respDesc").InnerText);
            }
            return(text3);
        }
Exemple #8
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            string formString = GameRequest.GetFormString("account");

            if (formString == "")
            {
                base.Response.Write("充值账号错误");
                base.Response.End();
            }
            int formInt = GameRequest.GetFormInt("amount", 0);

            if (formInt < 6)
            {
                base.Response.Write("充值金额不能低于6元");
                base.Response.End();
            }
            string      text        = GameRequest.GetFormString("type");
            OnLineOrder onLineOrder = new OnLineOrder();

            onLineOrder.OrderID = PayHelper.GetOrderIDByPrefix("e");
            if (Fetch.GetUserCookie() == null)
            {
                onLineOrder.OperUserID = 0;
            }
            else
            {
                onLineOrder.OperUserID = Fetch.GetUserCookie().UserID;
            }
            onLineOrder.Accounts    = formString;
            onLineOrder.OrderAmount = formInt;
            onLineOrder.IPAddress   = GameRequest.GetUserIP();
            string text3 = text;

            switch (text3)
            {
            case "alipay":
                text = "alipay.wap";
                onLineOrder.ShareID = 2;
                goto IL_240;

            case "weixin":
                text = "wxpay.wap";
                onLineOrder.ShareID = 3;
                goto IL_240;

            case "alipay-scan":
                text                = "alipay.ma";
                this.paytype        = "支付宝";
                onLineOrder.ShareID = 4;
                goto IL_240;

            case "weixin-scan":
                text                = "wxpay.ma";
                this.paytype        = "微信";
                onLineOrder.ShareID = 5;
                goto IL_240;

            case "qq":
                text = "qqpay.wap";
                onLineOrder.ShareID = 6;
                goto IL_240;

            case "qq-scan":
                text                = "qqpay.ma";
                this.paytype        = "QQ";
                onLineOrder.ShareID = 8;
                goto IL_240;

            case "kuaijie":
                text = "wangyin.wap";
                onLineOrder.ShareID = 7;
                goto IL_240;
            }
            text = "1";
            onLineOrder.ShareID = 1;
IL_240:
            Message message = FacadeManage.aideTreasureFacade.RequestOrder(onLineOrder);

            if (!message.Success)
            {
                base.Response.Write(message.Content);
                base.Response.End();
            }
            string url   = ApplicationSettings.Get("url_e");
            string value = ApplicationSettings.Get("parter_e");
            string str   = ApplicationSettings.Get("key_e");
            string text2 = ApplicationSettings.Get("pay_url");

            if (text2 == "")
            {
                text2 = "http://" + base.Request.Url.Host;
            }
            string orderID = onLineOrder.OrderID;
            string value2  = text2 + "/pay/epay/notify_url.aspx";
            SortedDictionary <string, string> sortedDictionary = new SortedDictionary <string, string>();

            sortedDictionary["out_trade_no"] = orderID;
            sortedDictionary["service"]      = text;
            sortedDictionary["partner"]      = value;
            sortedDictionary["version"]      = "";
            sortedDictionary["charset"]      = "utf-8";
            sortedDictionary["sign_type"]    = "";
            sortedDictionary["total_fee"]    = formInt.ToString("#0.00");
            sortedDictionary["notify_url"]   = value2;
            sortedDictionary["return_url"]   = value2;
            sortedDictionary["nonce_str"]    = TextUtility.CreateAuthStr(20, false);
            string str2  = PayHelper.PrepareSign(sortedDictionary);
            string str3  = TextEncrypt.EncryptPassword(str2 + str).ToLower();
            string param = str2 + "&sign=" + str3;
            string s     = HttpHelper.HttpRequest(url, param);

            base.Response.Write(s);
            base.Response.End();
        }
        protected void Page_Load(object sender, System.EventArgs e)
        {
            string formString = GameRequest.GetFormString("account");

            if (formString == "")
            {
                base.Response.Write("充值账号错误");
                base.Response.End();
            }
            int formInt = GameRequest.GetFormInt("amount", 0);

            if (formInt < 6)
            {
                base.Response.Write("充值金额不能低于6元");
                base.Response.End();
            }
            string      text        = GameRequest.GetFormString("type");
            OnLineOrder onLineOrder = new OnLineOrder();

            onLineOrder.OrderID = PayHelper.GetOrderIDByPrefix("ymf");
            if (Fetch.GetUserCookie() == null)
            {
                onLineOrder.OperUserID = 0;
            }
            else
            {
                onLineOrder.OperUserID = Fetch.GetUserCookie().UserID;
            }
            onLineOrder.Accounts    = formString;
            onLineOrder.OrderAmount = formInt;
            onLineOrder.IPAddress   = GameRequest.GetUserIP();
            string text3 = text;

            switch (text3)
            {
            case "alipay":
                text = "9";
                onLineOrder.ShareID = 2;
                goto IL_283;

            case "weixin":
                text = "13";
                onLineOrder.ShareID = 3;
                goto IL_283;

            case "alipay-scan":
                text                = "4";
                this.paytype        = "支付宝";
                onLineOrder.ShareID = 4;
                goto IL_283;

            case "weixin-scan":
                text                = "5";
                this.paytype        = "微信";
                onLineOrder.ShareID = 5;
                goto IL_283;

            case "qq":
                text = "15";
                onLineOrder.ShareID = 6;
                goto IL_283;

            case "qq-scan":
                text                = "6";
                this.paytype        = "QQ";
                onLineOrder.ShareID = 8;
                goto IL_283;

            case "jd":
                text = "21";
                onLineOrder.ShareID = 9;
                goto IL_283;

            case "jd-scan":
                text = "8";
                onLineOrder.ShareID = 13;
                goto IL_283;

            case "kuaijie":
                text = "1";
                onLineOrder.ShareID = 7;
                goto IL_283;
            }
            onLineOrder.ShareID = 1;
IL_283:
            Message message = FacadeManage.aideTreasureFacade.RequestOrder(onLineOrder);

            if (!message.Success)
            {
                base.Response.Write(message.Content);
                base.Response.End();
            }
            string value   = ApplicationSettings.Get("parter_ymf");
            string key2    = ApplicationSettings.Get("key_ymf");
            string text2   = ApplicationSettings.Get("pay_url");
            string gateway = ApplicationSettings.Get("url_ymf");

            if (text2 == "")
            {
                text2 = "http://" + base.Request.Url.Host;
            }
            string value2 = text2 + "/pay/youmifu/notify_url.aspx";

            System.Collections.Generic.Dictionary <string, string> dictionary = new System.Collections.Generic.Dictionary <string, string>();
            dictionary["apiName"] = "WAP_PAY_B2C";
            if (text == "wangyin")
            {
                dictionary["apiName"] = "WEB_PAY_B2C";
            }
            dictionary["apiVersion"]   = "1.0.0.1";
            dictionary["platformID"]   = value;
            dictionary["merchNo"]      = value;
            dictionary["orderNo"]      = onLineOrder.OrderID;
            dictionary["tradeDate"]    = System.DateTime.Now.ToString("yyyyMMdd");
            dictionary["amt"]          = formInt.ToString() + ".00";
            dictionary["merchUrl"]     = value2;
            dictionary["merchParam"]   = TextUtility.CreateAuthStr(20, false);
            dictionary["tradeSummary"] = "shop";
            dictionary["customerIP"]   = GameRequest.GetUserIP();
            string sourceData = PayHelper.PrepareSign(dictionary);
            string value3     = Jiami.sign(sourceData, key2);

            dictionary["signMsg"]       = value3;
            dictionary["choosePayType"] = text;
            if (text == "wangyin")
            {
                dictionary["choosePayType"] = "1";
            }
            dictionary["bankCode"] = "";
            base.Response.Write(PayHelper.BuildForm(dictionary, gateway));
            base.Response.End();
        }
        protected void Page_Load(object sender, System.EventArgs e)
        {
            string formString = GameRequest.GetFormString("account");

            if (formString == "")
            {
                base.Response.Write("充值账号错误");
                base.Response.End();
            }
            int formInt = GameRequest.GetFormInt("amount", 0);

            if (formInt < 6)
            {
                base.Response.Write("充值金额不能低于6元");
                base.Response.End();
            }
            string      formString2 = GameRequest.GetFormString("type");
            OnLineOrder onLineOrder = new OnLineOrder();

            onLineOrder.OrderID = PayHelper.GetOrderIDByPrefix("zny");
            if (Fetch.GetUserCookie() == null)
            {
                onLineOrder.OperUserID = 0;
            }
            else
            {
                onLineOrder.OperUserID = Fetch.GetUserCookie().UserID;
            }
            onLineOrder.Accounts    = formString;
            onLineOrder.OrderAmount = formInt;
            onLineOrder.IPAddress   = GameRequest.GetUserIP();
            string text = "";

            if (formString2 == "alipay")
            {
                text = "10001";
                onLineOrder.ShareID = 2;
                this.paytype        = "支付宝";
            }
            if (formString2 == "weixin")
            {
                text = "20001";
                onLineOrder.ShareID = 3;
                this.paytype        = "微信";
            }
            if (formString2 == "weixin-scan")
            {
                text = "20001";
                onLineOrder.ShareID = 5;
                this.paytype        = "微信";
            }
            Message message = FacadeManage.aideTreasureFacade.RequestOrder(onLineOrder);

            if (!message.Success)
            {
                base.Response.Write(message.Content);
                base.Response.End();
            }
            string url   = ApplicationSettings.Get("url_zny");
            string value = ApplicationSettings.Get("parter_zny");
            string text2 = ApplicationSettings.Get("key_zny");
            string text3 = ApplicationSettings.Get("pay_url");

            if (text3 == "")
            {
                text3 = "http://" + base.Request.Url.Host;
            }
            string value2 = text3 + "/pay/zhinengyun/notify_url.aspx";

            System.Collections.Generic.Dictionary <string, string> dictionary = new System.Collections.Generic.Dictionary <string, string>();
            dictionary["uid"]        = value;
            dictionary["orderid"]    = onLineOrder.OrderID;
            dictionary["istype"]     = text;
            dictionary["price"]      = formInt.ToString();
            dictionary["goodsname"]  = "shop";
            dictionary["orderuid"]   = TextUtility.CreateAuthStr(20, false);
            dictionary["notify_url"] = value2;
            dictionary["return_url"] = value2;
            dictionary["format "]    = "json";
            string password = string.Concat(new string[]
            {
                dictionary["goodsname"],
                dictionary["istype"],
                dictionary["notify_url"],
                dictionary["orderid"],
                dictionary["orderuid"],
                dictionary["price"],
                dictionary["return_url"],
                text2,
                dictionary["uid"]
            });
            string value3 = TextEncrypt.EncryptPassword(password).ToLower();

            dictionary["key"] = value3;
            string param = PayHelper.PrepareSign(dictionary);
            string json  = HttpHelper.HttpRequest(url, param);

            System.Collections.Generic.Dictionary <string, object> dictionary2 = JsonHelper.DeserializeJsonToObject <System.Collections.Generic.Dictionary <string, object> >(json);
            if (!dictionary2.ContainsKey("code"))
            {
                base.Response.Write("接口正在维护中...");
            }
            else
            {
                if (!(dictionary2["code"].ToString() == "200"))
                {
                    base.Response.Write(dictionary2["msg"].ToString());
                }
                else
                {
                    Log.Write(dictionary2["data"].ToString());
                    System.Collections.Generic.Dictionary <string, string> dictionary3 = JsonHelper.DeserializeJsonToObject <System.Collections.Generic.Dictionary <string, string> >(dictionary2["data"].ToString());
                    if (text == "10001")
                    {
                        base.Response.Redirect(dictionary3["qrcode"]);
                    }
                    else
                    {
                        this.order_no     = onLineOrder.OrderID;
                        this.order_amount = formInt.ToString();
                        this.qrcode       = dictionary3["qrcode"];
                    }
                }
            }
        }