Exemplo n.º 1
0
        public void ProcessRequest(HttpContext context)
        {
            //取得处事类型
            string action = BBRequest.GetQueryString("action");
            string a      = context.Request["action"];

            switch (action)
            {
            case "SingleFile":     //单文件
                SingleFile(context);
                break;

            case "MultipleFile":     //多文件
                MultipleFile(context);
                break;

            case "AttachFile":     //附件
                AttachFile(context);
                break;

            case "EditorFile":     //编辑器文件
                EditorFile(context);
                break;

            case "ManagerFile":     //管理文件
                ManagerFile(context);
                break;
            }
        }
Exemplo n.º 2
0
        public ActionResult ValiDateCode()
        {
            string ucode  = BBRequest.GetQueryString("ucode");
            string tcode  = BBRequest.GetQueryString("tcode");
            string scode  = BBRequest.GetQueryString("scode");
            string vicode = BBRequest.GetQueryString("vicode");

            ViewData["MsgStyle"]       = "";
            ViewData["UpdatePwdStyle"] = "";
            if (string.IsNullOrEmpty(ucode) || string.IsNullOrEmpty(tcode) || string.IsNullOrEmpty(scode) || string.IsNullOrEmpty(vicode))
            {
                ViewData["Msg"]            = "验证失败";
                ViewData["MsgText"]        = "您的验证信息错误或已过期,请登录用户中心重新发送!";
                ViewData["UpdatePwdStyle"] = "display: none;";
                return(View());
            }
            int userid = int.Parse(DESEncrypt.decryptstring1(ucode));
            int type   = int.Parse(DESEncrypt.decryptstring1(tcode));

            vicode = vicode.Substring(0, 10) + " " + vicode.Substring(10, 8);
            DateTime dt1 = DateTime.Parse(vicode);

            if (!vdcm.ExitValiDateCode(userid, type, dt1.AddHours(-47)))
            {
                ViewData["Msg"]            = "验证失败";
                ViewData["MsgText"]        = "您的验证信息错误或已过期,请登录用户中心重新发送!";
                ViewData["UpdatePwdStyle"] = "display: none;";
                return(View());
            }
            validatecode vcode = vdcm.GetValiDateCode(userid, type);

            if (vcode.code != scode)
            {
                ViewData["Msg"]            = "验证失败";
                ViewData["MsgText"]        = "您的验证信息错误或已过期,请登录用户中心重新发送!";
                ViewData["UpdatePwdStyle"] = "display: none;";
                return(View());
            }
            ViewData["MsgStyle"]       = "display: none;";
            Session[Keys.SESSION_USER] = userid;
            Session["Type"]            = type;
            Session.Timeout            = 20;
            return(View());
        }
Exemplo n.º 3
0
        public ActionResult PayOrder()
        {
            string error   = string.Empty;
            string OrderNo = DESEncrypt.decryptstring1(BBRequest.GetQueryString("Order"));
            string Bank    = BBRequest.GetQueryString("Bank");

            try
            {
                if (string.IsNullOrEmpty(OrderNo))
                {
                    error = "您的订单存在安全风险,请查看订单状态或稍后重试。";
                }
                order             = om.GetOrder(OrderNo);
                ViewData["Money"] = order.PayMoney;
                string Type = "";
                if (order.Type == 1)
                {
                    Type = "游戏币";
                }
                else
                {
                    Type = "平台币";
                }
                string PayType  = "";
                string Function = "";
                string Action   = "";
                switch (order.PayTypeId)
                {
                case 1:
                    //if (!string.IsNullOrEmpty(Bank))
                    //{
                    //    // PayType = Bank;
                    //}
                    //else
                    //{
                    //    error = "您的订单存在安全风险,请查看订单状态或稍后重试。";
                    //}
                    PayType = "0";
                    Action  = "action=\"HeePayReq\"";
                    HeePayOrder(Type, PayType);
                    break;

                case 2:
                    //PayType = "SZX-NET";
                    //Action = "action=\"PayReq\"";
                    //YeePayOrder(Type, PayType);
                    PayType = "13";
                    Action  = "action=\"HeePayReq\"";
                    HeePayOrder(Type, PayType);
                    break;

                case 3:
                    //PayType = "UNICOM-NET";
                    //Action = "action=\"PayReq\"";
                    //YeePayOrder(Type, PayType);
                    PayType = "14";
                    Action  = "action=\"HeePayReq\"";
                    HeePayOrder(Type, PayType);
                    break;

                case 4:
                    //PayType = "TELECOM-NET";
                    //Action = "action=\"PayReq\"";
                    //YeePayOrder(Type, PayType);
                    PayType = "15";
                    Action  = "action=\"HeePayReq\"";
                    HeePayOrder(Type, PayType);
                    break;

                case 5:
                    PayType = "QQCARD-NET";
                    Action  = "action=\"PayReq\"";
                    YeePayOrder(Type, PayType);
                    break;

                case 9:
                    //PayType = "JUNNET-NET";
                    //Action = "action=\"PayReq\"";
                    //YeePayOrder(Type, PayType);
                    PayType = "10";
                    Action  = "action=\"HeePayReq\"";
                    HeePayOrder(Type, PayType);
                    break;

                case 12:
                    PayType = "35";
                    Action  = "action=\"HeePayReq\"";
                    HeePayOrder(Type, PayType);
                    break;

                case 13:
                    PayType = "42";
                    Action  = "action=\"HeePayReq\"";
                    HeePayOrder(Type, PayType);
                    break;

                case 14:
                    PayType = "44";
                    Action  = "action=\"HeePayReq\"";
                    HeePayOrder(Type, PayType);
                    break;

                case 8:
                    Function = "onsubmit=\"return SubmitOrder()\"";
                    Action   = "";
                    AirPayOrder(Type);
                    break;

                default:
                    break;
                }

                ViewData["Function"] = Function;
                ViewData["Action"]   = Action;
            }
            catch (Exception ex)
            {
                error = ex.Message;
            }
            if (string.IsNullOrEmpty(error))
            {
                ViewData["EVisible"] = "display:none";
            }
            else
            {
                ViewData["OVisible"] = "display:none";
            }
            return(View());
        }