Ejemplo n.º 1
0
    /// <summary>
    /// 添加友情链接申请
    /// </summary>
    public void LinksApplication_Add()
    {
        string name  = tools.CheckStr(Request["name"]);
        string url   = tools.CheckStr(Request["url"]);
        string email = tools.CheckStr(Request["email"]);
        string intro = tools.CheckStr(Request["intro"]);

        if (name == "" || name.Length > 200)
        {
            pub.Msg("info", "信息提示", "请填写网站名称,200字符以内!", false, "{back}");
        }
        if (url == "" || url == "http://")
        {
            pub.Msg("info", "信息提示", "请填写网址!", false, "{back}");
        }
        if (email == "")
        {
            pub.Msg("info", "信息提示", "请填写电子邮箱!", false, "{back}");
        }
        if (intro == "" || intro.Length > 500)
        {
            pub.Msg("info", "信息提示", "请填写网站介绍,500字符以内!", false, "{back}");
        }
        //U_LinksApplicationInfo entity = new U_LinksApplicationInfo();
        //entity.Links_Name = name;
        //entity.Links_Url = url;
        //entity.Links_Intro = intro;
        //entity.Links_Email = email;
        //entity.Links_Addtime = DateTime.Now;

        //MyApplication.AddU_LinksApplication(entity, pub.CreateUserPrivilege("0c5dc9c5-bb97-435e-846b-1947abc87752"));

        //pub.Msg("positive", "操作成功", "申请已提交,请等待管理员审核!", false, "{back}");
    }
Ejemplo n.º 2
0
    public void Sys_UpdateApplication()
    {
        ConfigInfo entity = GetConfigByID(1);

        if (entity == null)
        {
            pub.Msg("error", "错误信息", "系统配置记录不存在", true, "/index.aspx");
            Response.End();
        }
        else
        {
            Application["Sys_Config_ID"]              = entity.Sys_Config_ID;
            Application["Upload_Server_URL"]          = entity.Upload_Server_URL;
            Application["Upload_Server_Return_WWW"]   = entity.Upload_Server_Return_WWW;
            Application["Upload_Server_Return_Admin"] = entity.Upload_Server_Return_Admin;
            Application["Language_Define"]            = entity.Language_Define;
            Application["Site_Name"]               = entity.Site_Name;
            Application["Site_URL"]                = entity.Site_URL;
            Application["Site_Logo"]               = entity.Site_Logo;
            Application["Site_Tel"]                = entity.Site_Tel;
            Application["Site_Fax"]                = entity.Site_Fax;
            Application["Site_Email"]              = entity.Site_Email;
            Application["Site_Keyword"]            = entity.Site_Keyword;
            Application["Site_Description"]        = entity.Site_Description;
            Application["Site_Title"]              = entity.Site_Title;
            Application["Mail_Server"]             = entity.Mail_Server;
            Application["Mail_ServerPort"]         = entity.Mail_ServerPort;
            Application["Mail_EnableSsl"]          = entity.Mail_EnableSsl;
            Application["Mail_ServerUserName"]     = entity.Mail_ServerUserName;
            Application["Mail_ServerPassWord"]     = entity.Mail_ServerPassWord;
            Application["Mail_FromName"]           = entity.Mail_FromName;
            Application["Mail_From"]               = entity.Mail_From;
            Application["Mail_Replyto"]            = entity.Mail_Replyto;
            Application["Mail_Encode"]             = entity.Mail_Encode;
            Application["Coin_Name"]               = entity.Coin_Name;
            Application["Coin_Rate"]               = entity.Coin_Rate;
            Application["Sys_Config_Site"]         = entity.Sys_Config_Site;
            Application["Trade_Contract_IsActive"] = entity.Trade_Contract_IsActive;
            Application["Static_IsEnable"]         = entity.Static_IsEnable;
            Application["Chinabank_Code"]          = entity.Chinabank_Code;
            Application["Chinabank_Key"]           = entity.Chinabank_Key;
            Application["Alipay_Email"]            = entity.Alipay_Email;
            Application["Alipay_Code"]             = entity.Alipay_Code;
            Application["Alipay_Key"]              = entity.Alipay_Key;
            Application["Tenpay_Code"]             = entity.Tenpay_Code;
            Application["Tenpay_Key"]              = entity.Tenpay_Key;
            Application["CreditPayment_Code"]      = entity.CreditPayment_Code;
            Application["RepidBuy_IsEnable"]       = entity.RepidBuy_IsEnable;
            Application["Coupon_UsedAmount"]       = entity.Coupon_UsedAmount;
            Application["Sys_Sensitive_Keyword"]   = entity.Sys_Sensitive_Keyword;
            Application["Shop_Second_Domain"]      = entity.Shop_Second_Domain;
            Application["Keyword_Adv_MinPrice"]    = entity.Keyword_Adv_MinPrice;
            Application["Sys_Delivery_Code"]       = entity.Sys_Delivery_Code;
            Application["Instant_GoldPrice"]       = entity.Instant_GoldPrice;
            Application["Instant_SilverPrice"]     = entity.Instant_SilverPrice;
        }
    }
Ejemplo n.º 3
0
    public void AddPackage()
    {
        int    Package_ID          = tools.CheckInt(Request.Form["Package_ID"]);
        string Package_Name        = tools.CheckStr(Request.Form["Package_Name"]);
        int    Package_IsInsale    = tools.CheckInt(Request.Form["Package_IsInsale"]);
        int    Package_StockAmount = tools.CheckInt(Request.Form["Package_StockAmount"]);
        int    Package_Weight      = tools.CheckInt(Request.Form["Package_Weight"]);
        double Package_Price       = tools.CheckFloat(Request.Form["Package_Price"]);
        int    Package_Sort        = tools.CheckInt(Request.Form["Package_Sort"]);

        PackageInfo entity = new PackageInfo();

        entity.Package_ID          = Package_ID;
        entity.Package_Name        = Package_Name;
        entity.Package_IsInsale    = Package_IsInsale;
        entity.Package_StockAmount = Package_StockAmount;
        entity.Package_Weight      = Package_Weight;
        entity.Package_Price       = Package_Price;
        entity.Package_Sort        = Package_Sort;
        entity.Package_Addtime     = DateTime.Now;
        entity.Package_Site        = pub.GetCurrentSite();
        entity.PackageProductInfos = ReadPackageProduct();
        entity.Package_SupplierID  = tools.NullInt(Session["supplier_id"]);

        if (MyBLL.AddPackage(entity, pub.CreateUserPrivilege("573393a4-573e-4872-ad7b-b77d75e0f611")))
        {
            pub.Msg("positive", "操作成功", "操作成功", true, "Package_add.aspx");
        }
        else
        {
            pub.Msg("error", "错误信息", "操作失败,请稍后重试", false, "{back}");
        }
    }
Ejemplo n.º 4
0
    public void AddProductTag()
    {
        int    Product_Tag_ID         = tools.CheckInt(Request.Form["Product_Tag_ID"]);
        string Product_Tag_Name       = tools.CheckStr(Request.Form["Product_Tag_Name"]);
        int    Product_Tag_IsSupplier = tools.CheckInt(Request.Form["Product_Tag_IsSupplier"]);
        int    Product_Tag_IsActive   = tools.CheckInt(Request.Form["Product_Tag_IsActive"]);
        int    Product_Tag_Sort       = tools.CheckInt(Request.Form["Product_Tag_Sort"]);
        string Product_Tag_Site       = pub.GetCurrentSite();

        ProductTagInfo entity = new ProductTagInfo();

        entity.Product_Tag_ID         = Product_Tag_ID;
        entity.Product_Tag_Name       = Product_Tag_Name;
        entity.Product_Tag_IsSupplier = 1;
        entity.Product_Tag_IsActive   = Product_Tag_IsActive;
        entity.Product_Tag_Sort       = Product_Tag_Sort;
        entity.Product_Tag_Site       = Product_Tag_Site;
        entity.Product_Tag_SupplierID = tools.NullInt(Session["supplier_id"]);

        if (MyBLL.AddProductTag(entity, pub.CreateUserPrivilege("2f1d706e-3356-494d-821c-c4173a923328")))
        {
            pub.Msg("positive", "操作成功", "操作成功", true, "tag.aspx");
        }
        else
        {
            pub.Msg("error", "错误信息", "操作失败,请稍后重试", false, "{back}");
        }
    }
Ejemplo n.º 5
0
    public void edit_contract(int contract_id, string orders_sn)
    {
        ContractInfo contractinfo  = MyContract.GetContractByID(contract_id, pub.CreateUserPrivilege("a3465003-08b3-4a31-9103-28d16c57f2c8"));
        string       Contract_Note = tools.CheckStr(Request["Contract_Note"]);

        contractinfo.Contract_Note           = Contract_Note;
        contractinfo.Contract_Confirm_Status = 1;



        if (MyContract.EditContract(contractinfo, pub.CreateUserPrivilege("cd2be0f8-b35a-48ad-908b-b5165c0a1581")))
        {
            pub.Msg("positive", "操作成功", "操作成功!", false, "/member/Order_Contract.aspx?orders_sn=" + orders_sn);
        }
        else
        {
            pub.Msg("error", "操作失败", "操作失败!", false, "{back}");
        }
    }
Ejemplo n.º 6
0
    /// <summary>
    /// 发送交易请求
    /// </summary>
    /// <param name="OrdId">订单号</param>
    /// <param name="TransAmt">订单金额</param>
    /// <param name="Priv1">备注</param>
    public void Pay_NetPay_Send(string OrdId, string TransAmt, string Priv1)
    {
        string MerId     = Application["U_ChinaPay_Code"] + "";
        string CuryId    = "156";
        string TransType = "0001";
        string TransDate = DateTime.Today.ToString("yyyyMMdd");

        //后台/页面返回地址
        string BgRetUrl   = Application["Site_URL"] + "/pay/pay_notify.aspx?payment=CHINAPAY";
        string PageRetUrl = Application["Site_URL"] + "/pay/pay_result.aspx?payment=CHINAPAY";

        OrdId    = OrdersTransform(OrdId);
        TransAmt = TransAmtTransform(TransAmt);

        //准备签名的数据
        string plain = MerId + OrdId + TransAmt + CuryId + TransDate + TransType + Priv1;

        //开始签名
        string ChkValue = sign(MerId, plain);

        if (ChkValue == null || ChkValue.Length != 256)
        {
            pub.Msg("error", "错误提示", "签名失败!", false, 3, "{back}");
            return;
        }

        Response.Write("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
        Response.Write("<head>");
        Response.Write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />");
        Response.Write("<title>PayGate</title>");
        Response.Write("</head>");
        Response.Write("<body onload=\"javascript:document.frm_pay_netpay.submit();\">");
        Response.Write("<form action=\"https://payment.ChinaPay.com/pay/TransGet\" method=\"POST\" name=\"frm_pay_netpay\">");
        Response.Write("<input type=\"hidden\" name=\"MerId\" value=\"" + MerId + "\" />");
        Response.Write("<input type=\"hidden\" name=\"Version\" value=\"20070129\" />");
        Response.Write("<input type=\"hidden\" name=\"OrdId\" value=\"" + OrdId + "\" />");
        Response.Write("<input type=\"hidden\" name=\"TransAmt\" value=\"" + TransAmt + "\" />");
        Response.Write("<input type=\"hidden\" name=\"CuryId\" value=\"" + CuryId + "\" />");
        Response.Write("<input type=\"hidden\" name=\"TransDate\" value=\"" + TransDate + "\" />");
        Response.Write("<input type=\"hidden\" name=\"TransType\" value=\"" + TransType + "\" />");
        Response.Write("<input type=\"hidden\" name=\"BgRetUrl\" value=\"" + BgRetUrl + "\" />");
        Response.Write("<input type=\"hidden\" name=\"PageRetUrl\" value=\"" + PageRetUrl + "\" />");
        //Response.Write("<input type=\"hidden\" name=\"GateId\" value=\"0001\" />");
        Response.Write("<input type=\"hidden\" name=\"Priv1\" value=\"" + Priv1 + "\" />");
        Response.Write("<input type=\"hidden\" name=\"ChkValue\" value=\"" + ChkValue + "\" />");
        Response.Write("</form>");
        Response.Write("</body>");
        Response.Write("</html>");
    }
Ejemplo n.º 7
0
    public void AddZhonghang()
    {
        Supplier_ID = tools.CheckInt(Session["supplier_id"].ToString());
        ZhongXinInfo zhongxininfo = GetZhongXinBySuppleir(Supplier_ID);

        if (zhongxininfo == null)
        {
            pub.Msg("info", "提示信息", "系统繁忙,若多次出现请联系管理员", false, "{back}");
        }

        SupplierInfo entitys = MySupplier.GetSupplierByID(Supplier_ID, pub.CreateUserPrivilege("1392d14a-6746-4167-804a-d04a2f81d226"));

        if (entitys != null)
        {
            string CompanyName     = tools.CheckStr(Request.Form["CompanyName"]);
            string ReceiptAccount  = tools.CheckStr(Request.Form["ReceiptAccount"]);
            string ReceiptBank     = tools.CheckStr(Request.Form["ReceiptBank"]);
            string BankCode        = tools.CheckStr(Request.Form["BankCode"]);
            string BankName        = tools.CheckStr(Request.Form["BankName"]);
            string OpenAccountName = tools.CheckStr(Request.Form["OpenAccountName"]);

            if (CompanyName == "")
            {
                pub.Msg("info", "提示信息", "填写公司名称", false, "{back}");
            }

            if (ReceiptAccount == "")
            {
                pub.Msg("info", "提示信息", "填写出金收款账号须真实有效", false, "{back}");
            }

            if (ReceiptBank == "")
            {
                pub.Msg("info", "提示信息", "填写出金收款银行", false, "{back}");
            }

            if (BankCode == "")
            {
                pub.Msg("info", "提示信息", "填写银行行号", false, "{back}");
            }

            if (BankName == "")
            {
                pub.Msg("info", "提示信息", "填写银行名称", false, "{back}");
            }

            if (OpenAccountName == "")
            {
                pub.Msg("info", "提示信息", "填写开户名称", false, "{back}");
            }

            ZhongXinInfo entity = MyBLL.GetZhongXinBySuppleir(Supplier_ID);

            entity.ReceiptAccount = ReceiptAccount;
            entity.ReceiptBank    = ReceiptBank;
            entity.BankCode       = BankCode;
            entity.BankName       = BankName;
            entity.Audit          = 0;
            entity.Register       = 0;

            if (MyBLL.EditZhongXin(entity))
            {
                pub.Msg("positive", "操作成功", "操作成功", true, "/supplier/ZhongXin.aspx?tip=success");
            }
            else
            {
                pub.Msg("error", "错误信息", "操作失败,请稍后重试", false, "{back}");
            }
        }
        else
        {
            pub.Msg("error", "错误信息", "信息保存失败,请稍后再试!", false, "{back}");
        }
    }
Ejemplo n.º 8
0
    //会员注册
    public void Member_Register()
    {
        string member_nickname         = tools.CheckStr(tools.NullStr(Request.Form["member_nickname"]).Trim());
        string member_email            = tools.CheckStr(tools.NullStr(Request.Form["member_email"]).Trim());
        string member_password         = tools.CheckStr(tools.NullStr(Request.Form["member_password"]).Trim());
        string member_password_confirm = tools.CheckStr(tools.NullStr(Request.Form["member_password_confirm"]).Trim());
        string verifycode  = tools.CheckStr(tools.NullStr(Request.Form["verifycode"]));
        int    Isagreement = tools.CheckInt(tools.NullStr(Request.Form["checkbox_agreement"]));
        int    Member_Type = tools.CheckInt(tools.NullStr(Request["Member_Type"]));
        //string member_mobile = tools.CheckStr(tools.NullStr(Request.Form["member_mobile"]));
        int    DefaultGrade = 1;
        string Member_State = "", Member_City = "", Member_County = "", Member_Name = "", Member_StreetAddress = "", Member_Phone_Number = "", member_mobile = "", U_Member_CompanyName = "", U_Member_CompanyUrl = "";
        int    U_Member_Department = 0, U_Member_CompanyKind = 0, U_Member_CompanyVocation = 0, U_Member_MenAmount = 0, U_Member_BuyType = 0;

        MemberGradeInfo member_grade = GetMemberDefaultGrade();

        if (member_grade != null)
        {
            DefaultGrade = member_grade.Member_Grade_ID;
        }

        if (verifycode != Session["Trade_Verify"].ToString() && verifycode.Length == 0)
        {
            pub.Msg("error", "验证码输入错误", "验证码输入错误", false, "{back}");
        }

        if (member_nickname.Length > 0)
        {
            if (Check_Member_Nickname(member_nickname))
            {
                pub.Msg("error", "该昵称已被使用", "该昵称已被使用。请使用另外一个昵称进行注册", false, "{back}");
            }
        }
        else
        {
            pub.Msg("error", "昵称无效", "请输入有效的昵称", false, "{back}");
        }

        if (tools.CheckEmail(member_email) == false)
        {
            pub.Msg("error", "邮件地址无效", "请输入有效的邮件地址", false, "{back}");
        }
        else
        {
            if (Check_Member_Email(member_email))
            {
                pub.Msg("error", "该邮件地址已被使用", "该邮件地址已被使用。请使用另外一个邮件地址进行注册", false, "{back}");
            }
        }

        if (CheckSsn(member_password) == false)
        {
            pub.Msg("error", "密码包含特殊字符", "密码包含特殊字符,只接受A-Z,a-z,0-9,不要输入空格", false, "{back}");
        }
        else
        {
            if (member_password.Length < 6 || member_password.Length > 20)
            {
                pub.Msg("error", "请输入6~20位密码", "请输入6~20位密码", false, "{back}");
            }
        }

        if (member_password_confirm != member_password)
        {
            pub.Msg("error", "两次密码输入不一致", "两次密码输入不一致,请重新输入", false, "{back}");
        }

        if (Member_Type == 1)
        {
            Member_Name = tools.CheckStr(tools.NullStr(Request["Member_Name"]));
            if (Member_Name == "")
            {
                pub.Msg("error", "信息不能为空", "联系人姓名不能为空", false, "{back}");
            }

            U_Member_Department = tools.CheckInt(tools.NullStr(Request["Member_Department"]));
            if (U_Member_Department == 0)
            {
                pub.Msg("error", "信息提示", "请选择联系人所在部门", false, "{back}");
            }

            Member_Phone_Number = tools.CheckStr(tools.NullStr(Request["Member_Phone_Number"]));
            if (Member_Phone_Number == "")
            {
                pub.Msg("error", "信息提示", "请输入联系人的固定电话", false, "{back}");
            }
            else if (pub.Checkmobile(Member_Phone_Number) == false)
            {
                pub.Msg("error", "信息提示", "电话格式错误,请重新输入!", false, "{back}");
            }

            member_mobile = tools.CheckStr(tools.NullStr(Request["member_mobile"]));

            U_Member_CompanyName = tools.CheckStr(tools.NullStr(Request["U_Member_CompanyName"]));
            if (U_Member_CompanyName == "")
            {
                pub.Msg("error", "信息提示", "请输入公司名称!", false, "{back}");
            }

            Member_State  = tools.CheckStr(tools.NullStr(Request["Member_State"]));
            Member_City   = tools.CheckStr(tools.NullStr(Request["Member_City"]));
            Member_County = tools.CheckStr(tools.NullStr(Request["Member_County"]));
            if (Member_County == "0")
            {
                pub.Msg("error", "信息提示", "请选择公司所在地!", false, "{back}");
            }

            Member_StreetAddress = tools.CheckStr(tools.NullStr(Request["Member_StreetAddress"]));

            U_Member_BuyType = tools.CheckInt(tools.NullStr(Request["Buy_Type"]));
            if (U_Member_BuyType == 0)
            {
                pub.Msg("error", "信息提示", "请选择购买类型/用途!", false, "{back}");
            }

            U_Member_CompanyUrl      = tools.CheckStr(tools.NullStr(Request["U_Member_CompanyUrl"]));
            U_Member_MenAmount       = tools.CheckInt(tools.NullStr(Request["Men_Amount"]));
            U_Member_CompanyVocation = tools.CheckInt(tools.NullStr(Request["Company_Vocation"]));
            U_Member_CompanyKind     = tools.CheckInt(tools.NullStr(Request["Company_Kind"]));
        }

        if (Isagreement != 1)
        {
            pub.Msg("error", "您需要接受用户注册协议", "要完成注册,您需要接受用户注册协议", false, "{back}");
        }

        MemberInfo member = new MemberInfo();

        member.Member_ID                = 0;
        member.Member_Email             = member_email;
        member.Member_Emailverify       = 0;
        member.Member_LoginMobile       = "";
        member.Member_LoginMobileverify = 1;
        member.Member_NickName          = member_nickname;
        member.Member_Password          = encrypt.MD5(member_password);
        member.Member_VerifyCode        = pub.Createvkey();
        member.Member_LoginCount        = 1;
        member.Member_LastLogin_IP      = Request.ServerVariables["remote_addr"];
        member.Member_LastLogin_Time    = DateTime.Now;
        member.Member_CoinCount         = 0;
        member.Member_CoinRemain        = 0;
        member.Member_Addtime           = DateTime.Now;
        member.Member_Trash             = 0;
        member.Member_Grade             = DefaultGrade;
        member.Member_Account           = 0;
        member.Member_Frozen            = 0;
        member.Member_AllowSysEmail     = 1;
        member.Member_Site              = "CN";
        member.Member_Source            = Session["customer_source"].ToString();
        //member.U_Member_Type = Member_Type;

        //添加会员基本信息
        if (MyMember.AddMember(member, pub.CreateUserPrivilege("5d071ec6-31d8-4960-a77d-f8209bbab496")))
        {
            MemberInfo memberinfo = GetMemberInfoByEmail(member_email);
            if (memberinfo != null)
            {
                //添加详细信息
                MemberProfileInfo profile = new MemberProfileInfo();

                profile.Member_Profile_MemberID = memberinfo.Member_ID;
                profile.Member_Name             = "";
                profile.Member_Sex               = -1;
                profile.Member_StreetAddress     = "";
                profile.Member_County            = "0";
                profile.Member_City              = "0";
                profile.Member_State             = "0";
                profile.Member_Country           = "CN";
                profile.Member_Zip               = "";
                profile.Member_Phone_Countrycode = "+86";
                profile.Member_Phone_Areacode    = "";
                profile.Member_Phone_Number      = "";
                profile.Member_Mobile            = "";
                if (Member_Type == 1)
                {
                    profile.Member_County       = Member_County;
                    profile.Member_City         = Member_City;
                    profile.Member_State        = Member_State;
                    profile.Member_Name         = Member_Name;
                    profile.Member_Phone_Number = Member_Phone_Number;
                    profile.Member_Mobile       = member_mobile;
                    //profile.U_Member_BuyType = U_Member_BuyType;
                    //profile.U_Member_CompanyName = U_Member_CompanyName;
                    //profile.U_Member_Department = U_Member_Department;
                    //profile.Member_StreetAddress = Member_StreetAddress;
                    //profile.U_Member_CompanyKind = U_Member_CompanyKind;
                    //profile.U_Member_CompanyUrl = U_Member_CompanyUrl;
                    //profile.U_Member_CompanyVocation = U_Member_CompanyVocation;
                    //profile.U_Member_MenAmount = U_Member_MenAmount;
                }

                MyMember.AddMemberProfile(profile, pub.CreateUserPrivilege("5d071ec6-31d8-4960-a77d-f8209bbab496"));

                Member_Log(memberinfo.Member_ID, "会员注册");

                //MyEmail.DelU_EmailNotifyRequestByEmail(memberinfo.Member_Email, pub.CreateUserPrivilege("83b084ee-1f49-4da0-b28c-8cdaaec1c193"));

                Session["member_id"]             = memberinfo.Member_ID;
                Session["member_email"]          = memberinfo.Member_Email;
                Session["member_nickname"]       = memberinfo.Member_NickName;
                Session["member_logined"]        = true;
                Session["member_emailverify"]    = true;
                Session["member_logincount"]     = memberinfo.Member_LoginCount + 1;
                Session["member_lastlogin_time"] = memberinfo.Member_LastLogin_Time;
                Session["member_lastlogin_ip"]   = memberinfo.Member_LastLogin_IP;
                Session["member_coinremain"]     = memberinfo.Member_CoinRemain;
                Session["member_coincount"]      = memberinfo.Member_CoinCount;
                Session["member_grade"]          = memberinfo.Member_Grade;
                Session["Member_AllowSysEmail"]  = memberinfo.Member_AllowSysEmail;
                // Session["Member_Type"] = memberinfo.U_Member_Type;
                Response.Cookies["member_email"].Expires = DateTime.Now.AddDays(365);
                Response.Cookies["member_email"].Value   = memberinfo.Member_Email;

                //member_register_sendemailverify(memberinfo.Member_Email, memberinfo.Member_VerifyCode);

                //if (memberinfo.Member_Emailverify == 0)
                //{
                Session["member_emailverify"] = memberinfo.Member_Emailverify;
                //Response.Redirect("/member/emailverify.aspx");
                //}
                //else
                //{
                //Response.Redirect("/member/index.aspx");
                //}
                if (Session["url_after_login"] == null)
                {
                    Session["url_after_login"] = "";
                }
                if (tools.NullStr(Session["url_after_login"].ToString()) != "")
                {
                    Response.Redirect(Session["url_after_login"].ToString());
                }
                else
                {
                    Response.Redirect("/member/index.aspx");
                }
            }
            else
            {
                pub.Msg("error", "错误信息", "用户注册失败,请稍后再试!", true, "/index.aspx");
            }
        }
        else
        {
            pub.Msg("error", "错误信息", "用户注册失败,请稍后再试!", true, "/index.aspx");
        }
    }