Example #1
0
    public void SendCode()
    {
        string SPID = HttpUtility.HtmlDecode(Request.QueryString["SPID"].ToString());

        if (String.IsNullOrEmpty(SPID))
        {
            return;
        }
        String ErrorDescription = "";


        int Result = CommonBizRules.SPInterfaceGrant(SPID, "SendSMSCode", this.Context, out ErrorDescription);

        if (Result != 0)
        {
            return;
        }
        Random random     = new Random();
        string AuthenCode = random.Next(111111, 999999).ToString();
        string PhoneNum   = HttpUtility.HtmlDecode(Request.QueryString["PhoneNum"].ToString());
        string msg        = "";

        Result = PhoneBO.InsertPhoneSendMassage("", "", AuthenCode, PhoneNum, DateTime.Now, "", 1, 0, "1", out msg);
        //CommonBizRules.SendMessage(PhoneNum, "您的验证码是" + AuthenCode, SPID);
        CommonBizRules.SendMessageV3(PhoneNum, "您的验证码是" + AuthenCode, SPID);
    }
Example #2
0
    public void findpwd()
    {
        List <string> list    = new List <string>();
        string        massage = null;
        int           type    = Convert.ToInt32(HttpUtility.HtmlDecode(Request.QueryString["type"].ToString()));
        string        phone   = HttpUtility.HtmlDecode(Request.QueryString["phone"].ToString());
        string        SPID    = HttpUtility.HtmlDecode(Request.QueryString["spid"].ToString());
        string        IP      = HttpUtility.HtmlDecode(Request.QueryString["ip"].ToString());


        if (!ValidateValidateCode())
        {
            Response.Write("验证码错误,请重新输入");
            return;
        }
        else
        {
            list = FindPwd.SelTypeFindPassWord(type, phone, out Msg);
            if (list[0].ToString() == "-30009")
            {
                Response.Write("voicePassword.aspx");
                return;
            }

            if (list[0].ToString() == "0")
            {
                string y = list[2].ToString();
                if (type == 1)
                {
                    massage = "您的语音密码为:" + y;
                    return;
                }
                else if (type == 2)
                {
                    massage = "您的Web密码为:" + y;
                }
                FindPwd.InsertFindPwdLog(list[1].ToString(), list[3].ToString(), Convert.ToString(type), "2", phone, 0, SPID, IP, "...", out Msg);
                //CommonBizRules.SendMessage(phone, massage, SPID);
                CommonBizRules.SendMessageV3(phone, massage, SPID);
                Response.Write("0");
            }
            else
            {
                Response.Write(list[4].ToString());
            }
        }
    }
    public void SendCode()
    {
        int    ajaxcode = -1;
        string SPID     = HttpUtility.HtmlDecode(Request.QueryString["SPID"].ToString());

        if (String.IsNullOrEmpty(SPID))
        {
            return;
        }
        String ErrorDescription = "";

        int count = Convert.ToInt32(HttpUtility.HtmlDecode(Request.QueryString["count"].ToString())); // 发送次数
        //int Result = CommonBizRules.SPInterfaceGrant(SPID, "SendSMSCode", this.Context, out ErrorDescription);
        int Result = PhoneBO.SPInterfaceGrant(SPID, "SendSMSCode", out ErrorDescription);

        if (Result != 0)
        {
            return;
        }
        Random   random     = new Random();
        string   AuthenCode = random.Next(111111, 999999).ToString();
        string   PhoneNum   = HttpUtility.HtmlDecode(Request.QueryString["PhoneNum"].ToString());
        string   msg        = "";
        DateTime DealTime   = DateTime.Now;

        //Result = PhoneBO.PhoneSel(CustID, Phone, out ErrMsg);    // 验证电话是否可以做认证电话(这里的电话包括手机和电话)


        k = PhoneBO.PhoneSel("", PhoneNum, out msg);    // 验证电话是否可以做认证电话(这里的电话包括手机和电话)
        if (k == 0)
        {
            CommonBizRules.SendMessageV3(PhoneNum, "欢迎注册号码百事通会员,验证码为" + AuthenCode + ",有效期2分钟。", SPID);
            Result = PhoneBO.InsertPhoneSendMassage("", "欢迎注册号码百事通会员,验证码为" + AuthenCode + ",有效期2分钟。", AuthenCode, PhoneNum, DateTime.Now, "", count, 0, "1", out msg);
            logger.Info(PhoneNum + "<->" + AuthenCode);
            Response.Write(k);
        }
        else
        {
            logger.Info(PhoneNum + ":" + msg);
            Response.Write(k);
        }
    }
Example #4
0
    /// <summary>
    /// 作者:赵锐
    /// 日期:2009年8月15日
    /// </summary>
    public void selMobile()
    {
        string custid = HttpUtility.HtmlDecode(Request.QueryString["custid"].ToString());
        string mnum   = HttpUtility.HtmlDecode(Request.QueryString["mnum"].ToString());
        string spid   = HttpUtility.HtmlDecode(Request.QueryString["spid"].ToString());
        int    count  = Convert.ToInt32(HttpUtility.HtmlDecode(Request.QueryString["count"].ToString()));

        k = PhoneBO.PhoneSel(custid, mnum, out msg);
        if (k == 0)
        {
            Random random     = new Random();
            string AuthenCode = random.Next(111111, 999999).ToString();
            //CommonBizRules.SendMessage(mnum, "您的验证码是:"+AuthenCode, spid);
            CommonBizRules.SendMessageV3(mnum, "您在设置认证手机,验证码是:" + AuthenCode, spid);
            int y = PhoneBO.InsertPhoneSendMassage(custid, "您在设置认证手机,验证码信息内容", AuthenCode, mnum, DateTime.Now, "描述未知", count, 0, "1", out msg);
            Response.Write(y);
        }
        else
        {
            Response.Write(msg);
        }
    }
    public void notifyRecivedShortMessages(ShortMessage[] in0)
    {
        DateTime starttime = DateTime.Now;
        DateTime endtime   = DateTime.Now;

        System.TimeSpan delta = endtime.Subtract(starttime);
        //in0[0].deliverTime
        //in0[0].srcPhoneNumber
        //in0[0].msgContent      RZ(设置认证手机) CZ(重置密码)
        //in0[0].destPhoneNumber

        String NeedSendDownSMS = System.Configuration.ConfigurationManager.AppSettings["NeedSendDownSMS"];

        StringBuilder strLog = new StringBuilder();

        strLog.Append("====" + starttime + "=======");
        strLog.AppendFormat("主叫手机号码:{0};被叫号码:{1};上行短信内容:{2}\r\n", in0[0].srcPhoneNumber, in0[0].destPhoneNumber, in0[0].msgContent);

        Int32  Result = 0;
        String ErrMsg = "";
        String SPID   = "";

        //11811411   10690007311811    11811412   10690007311812
        try
        {
            if ("11811411".Equals(in0[0].destPhoneNumber) || "10690007311811".Equals(in0[0].destPhoneNumber))
            {
                SPID = "35433333";
            }
            else
            {
                SPID = "35433334";
            }
            String msg    = "验证码:";
            String CustID = "";
            String type   = String.Empty;
            type = in0[0].msgContent.ToLower();   // 类型 cz 重置密码   ,rz 认证手机   ,kt 开通账户

            if ("cz".Equals(type))
            {
                msg    = "您正在通过手机重置密码,验证码为:";
                CustID = PhoneBO.IsAuthenPhone(in0[0].srcPhoneNumber, SPID, out ErrMsg);
                if (!String.IsNullOrEmpty(CustID))
                {
                    Random random     = new Random();
                    String AuthenCode = random.Next(111111, 999999).ToString();
                    starttime = DateTime.Now;

                    SqlConnection conn = new SqlConnection(DBUtility.BestToneCenterConStr);
                    SqlCommand    cmd  = new SqlCommand("select mesage from SmsTemplate where id=2", conn);
                    using (conn)
                    {
                        conn.Open();
                        SqlDataReader reader = cmd.ExecuteReader();
                        while (reader.Read())
                        {
                            msg = (string)reader["mesage"];
                        }
                    }
                    StringBuilder msgtemplate = new StringBuilder();
                    if (String.IsNullOrEmpty(msg))
                    {
                        msg = "您正在通过手机重置密码,验证码为:{0},有效期2分钟。";
                    }
                    msgtemplate.AppendFormat(msg, AuthenCode);
                    if (String.IsNullOrEmpty(NeedSendDownSMS))
                    {
                        CommonBizRules.SendMessageV3(in0[0].srcPhoneNumber, msgtemplate.ToString(), SPID);
                    }
                    Result  = PhoneBO.InsertPhoneSendMassage(CustID, msgtemplate.ToString(), AuthenCode, in0[0].srcPhoneNumber, DateTime.Now, in0[0].msgContent, 1, 0, "1", out ErrMsg);
                    endtime = DateTime.Now;
                    delta   = endtime.Subtract(starttime);
                    strLog.AppendFormat("下发短信消耗时间:{0}\r\n", delta.Milliseconds);
                }
                else
                {
                    SqlConnection conn = new SqlConnection(DBUtility.BestToneCenterConStr);
                    SqlCommand    cmd  = new SqlCommand("select mesage from SmsTemplate where id=3", conn);
                    using (conn)
                    {
                        conn.Open();
                        SqlDataReader reader = cmd.ExecuteReader();
                        while (reader.Read())
                        {
                            msg = (string)reader["mesage"];
                        }
                    }
                    StringBuilder msgtemplate = new StringBuilder();
                    if (String.IsNullOrEmpty(msg))
                    {
                        msg = "亲,您正在通过手机获取验证码来重置密码,但是{0}不是号百客户的认证手机,不能通过该号码找回密码。";
                    }
                    msgtemplate.AppendFormat(msg, in0[0].srcPhoneNumber);
                    if (String.IsNullOrEmpty(NeedSendDownSMS))
                    {
                        CommonBizRules.SendMessageV3(in0[0].srcPhoneNumber, msgtemplate.ToString(), SPID);
                    }
                    //CommonBizRules.SendMessageV3(in0[0].srcPhoneNumber, "亲,您正在通过手机获取验证码来重置密码,但是" + in0[0].srcPhoneNumber + "不是号百客户的认证手机,不能通过该号码找回密码。", SPID);
                }
            }

            if ("rz".Equals(type))
            {
                strLog.AppendFormat("CustID:{0}\r\n", CustID);
                Random random     = new Random();
                String AuthenCode = random.Next(111111, 999999).ToString();
                //int k = PhoneBO.PhoneSelV2("", in0[0].srcPhoneNumber, out ErrMsg);    // 验证电话是否可以做认证电话(这里的电话包括手机和电话)
                //int k = 0;
                starttime = DateTime.Now;
                int k = PhoneBO.PhoneSel(CustID, in0[0].srcPhoneNumber, out ErrMsg);   // 验证电话是否可以做认证电话(这里的电话包括手机和电话) 以及发送次数控制
                endtime = DateTime.Now;
                delta   = endtime.Subtract(starttime);
                strLog.AppendFormat("验证手机是否是认证手机以及发送短信次数控制:{0};{1}\r\n", k, ErrMsg);
                strLog.AppendFormat("消耗查询电话时间:{0}\r\n", delta.Milliseconds);
                if (k == 0)
                {
                    msg = "欢迎注册号码百事通会员,验证码为:";

                    strLog.AppendFormat("验证码类型:{0}\r\n", msg);
                    starttime = DateTime.Now;

                    SqlConnection conn = new SqlConnection(DBUtility.BestToneCenterConStr);
                    SqlCommand    cmd  = new SqlCommand("select mesage from SmsTemplate where id=4", conn);
                    using (conn)
                    {
                        conn.Open();
                        SqlDataReader reader = cmd.ExecuteReader();
                        while (reader.Read())
                        {
                            msg = (string)reader["mesage"];
                        }
                    }
                    StringBuilder msgtemplate = new StringBuilder();
                    if (String.IsNullOrEmpty(msg))
                    {
                        msg = "亲,欢迎注册号码百事通会员,验证码为:{0},有效期2分钟。";
                    }
                    msgtemplate.AppendFormat(msg, AuthenCode);
                    if (String.IsNullOrEmpty(NeedSendDownSMS))
                    {
                        CommonBizRules.SendMessageV3(in0[0].srcPhoneNumber, msgtemplate.ToString(), SPID);
                    }
                    //CommonBizRules.SendMessageV3(in0[0].srcPhoneNumber, msg + AuthenCode + ",有效期2分钟。", SPID);
                    Result  = PhoneBO.InsertPhoneSendMassage(CustID, msg + AuthenCode + ",有效期2分钟。", AuthenCode, in0[0].srcPhoneNumber, DateTime.Now, in0[0].msgContent, 1, 0, "1", out ErrMsg);
                    endtime = DateTime.Now;
                    delta   = endtime.Subtract(starttime);
                    strLog.AppendFormat("下发短信消耗时间:{0}\r\n", delta.Milliseconds);
                }
                else
                {
                    SqlConnection conn = new SqlConnection(DBUtility.BestToneCenterConStr);
                    SqlCommand    cmd  = new SqlCommand("select mesage from SmsTemplate where id=5", conn);
                    using (conn)
                    {
                        conn.Open();
                        SqlDataReader reader = cmd.ExecuteReader();
                        while (reader.Read())
                        {
                            msg = (string)reader["mesage"];
                        }
                    }
                    StringBuilder msgtemplate = new StringBuilder();
                    if (String.IsNullOrEmpty(msg))
                    {
                        msg = "亲,您的手机号码:{0}已经是号码百事通客户了,无须再次为该号码设置认证手机。";
                    }
                    msgtemplate.AppendFormat(msg, in0[0].srcPhoneNumber);
                    if (String.IsNullOrEmpty(NeedSendDownSMS))
                    {
                        CommonBizRules.SendMessageV3(in0[0].srcPhoneNumber, msgtemplate.ToString(), SPID);
                    }

                    //   CommonBizRules.SendMessageV3(in0[0].srcPhoneNumber, "亲,您的手机号码" + in0[0].srcPhoneNumber + "已经是号码百事通客户了,无须再次为该号码设置认证手机。", SPID);
                }
            }


            if ("kt".Equals(type))
            {
                strLog.AppendFormat("开通账户CustID:{0}\r\n", CustID);
                Random random     = new Random();
                String AuthenCode = random.Next(111111, 999999).ToString();

                starttime = DateTime.Now;
                Result    = PhoneBO.IsBesttoneAccountBind(in0[0].srcPhoneNumber, out ErrMsg); // 验证电话是否可以做账户
                endtime   = DateTime.Now;
                delta     = endtime.Subtract(starttime);
                strLog.AppendFormat("验证手机是否是可以做账户号码:{0};{1}\r\n", Result, ErrMsg);
                strLog.AppendFormat("消耗IsBesttoneAccountBind时间:{0}\r\n", delta.Milliseconds);
                if (Result == 0)
                {
                    msg = "欢迎注册开通号码百事通账户,验证码为:";

                    strLog.AppendFormat("验证码类型:{0}\r\n", msg);
                    starttime = DateTime.Now;

                    SqlConnection conn = new SqlConnection(DBUtility.BestToneCenterConStr);
                    SqlCommand    cmd  = new SqlCommand("select mesage from SmsTemplate where id=6", conn);
                    using (conn)
                    {
                        conn.Open();
                        SqlDataReader reader = cmd.ExecuteReader();
                        while (reader.Read())
                        {
                            msg = (string)reader["mesage"];
                        }
                    }
                    StringBuilder msgtemplate = new StringBuilder();
                    if (String.IsNullOrEmpty(msg))
                    {
                        msg = "亲,欢迎注册开通号码百事通账户,验证码为:{0},有效期2分钟。";
                    }
                    msgtemplate.AppendFormat(msg, AuthenCode);
                    if (String.IsNullOrEmpty(NeedSendDownSMS))
                    {
                        CommonBizRules.SendMessageV3(in0[0].srcPhoneNumber, msgtemplate.ToString(), SPID);
                    }
                    //CommonBizRules.SendMessageV3(in0[0].srcPhoneNumber, msg + AuthenCode + ",有效期2分钟。", SPID);
                    Result  = PhoneBO.InsertPhoneSendMassage(CustID, msg + AuthenCode + ",有效期2分钟。", AuthenCode, in0[0].srcPhoneNumber, DateTime.Now, in0[0].msgContent, 1, 0, "1", out ErrMsg);
                    endtime = DateTime.Now;
                    delta   = endtime.Subtract(starttime);
                    strLog.AppendFormat("下发短信消耗时间:{0}\r\n", delta.Milliseconds);
                }
                else
                {
                    SqlConnection conn = new SqlConnection(DBUtility.BestToneCenterConStr);
                    SqlCommand    cmd  = new SqlCommand("select mesage from SmsTemplate where id=7", conn);
                    using (conn)
                    {
                        conn.Open();
                        SqlDataReader reader = cmd.ExecuteReader();
                        while (reader.Read())
                        {
                            msg = (string)reader["mesage"];
                        }
                    }
                    StringBuilder msgtemplate = new StringBuilder();
                    if (String.IsNullOrEmpty(msg))
                    {
                        msg = "亲,您的手机号码:{0}已经开通过号码百事通账户了,无须再次为该号码开通账户。";
                    }
                    msgtemplate.AppendFormat(msg, in0[0].srcPhoneNumber);
                    if (String.IsNullOrEmpty(NeedSendDownSMS))
                    {
                        CommonBizRules.SendMessageV3(in0[0].srcPhoneNumber, msgtemplate.ToString(), SPID);
                    }
                    //CommonBizRules.SendMessageV3(in0[0].srcPhoneNumber, "亲,您的手机号码" + in0[0].srcPhoneNumber + "已经开通过号码百事通账户了,无须再次为该号码开通账户。", SPID);
                }
            }
        }
        catch (Exception e)
        {
            strLog.AppendFormat("发生异常:{0}", e.Message);
        }
        finally
        {
            BTUCenterInterfaceLog.CenterForBizTourLog("PushPortClientService", strLog);
        }
        //CommonBizRules.SendMessageV3("18930036387", "哈哈哈哈", "35433333");
    }
Example #6
0
    /// <summary>
    /// 作者:李宏图
    /// 日期:2014年01月08日
    /// </summary>
    public String selMobile(String SPID, String CustID, String Phone)
    {
        StringBuilder ResponseMsg = new StringBuilder();

        if (CommonUtility.IsEmpty(SPID))
        {
            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "995");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "SPID不能为空!");
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "995");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "SPID不能为空!");
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }

        if (CommonUtility.IsEmpty(Phone))
        {
            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "996");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "Phone不能为空!");
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "996");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "Phone不能为空!");
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }

        if (CommonUtility.IsEmpty(CustID))
        {
            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "997");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "CustID不能为空!");
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "997");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "CustID不能为空!");
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }


        try
        {
            CustID = HttpUtility.HtmlDecode(Request.QueryString["CustID"]);
            Phone  = HttpUtility.HtmlDecode(Request.QueryString["Phone"]);                     // 手机号码
            SPID   = HttpUtility.HtmlDecode(Request.QueryString["SPID"]);
            int count = Convert.ToInt32(HttpUtility.HtmlDecode(Request.QueryString["count"])); // 发送次数



            ErrMsg = String.Empty;
            Result = PhoneBO.PhoneSel(CustID, Phone, out ErrMsg);    // 验证电话是否可以做认证电话(这里的电话包括手机和电话)
            // 0 代表可以做认证电话 否则 不可以
            if (Result == 0)
            {
                Random random     = new Random();
                string AuthenCode = random.Next(111111, 999999).ToString();
                CommonBizRules.SendMessageV3(Phone, "您在通过客户端绑定认证手机,验证码是:" + AuthenCode, SPID);
                int y = PhoneBO.InsertPhoneSendMassage(CustID, "您在通过客户端绑定认证手机,验证码是:", AuthenCode, Phone, DateTime.Now, "描述未知", count, 0, "1", out ErrMsg);
                ResponseMsg.Length = 0;
                if ("json".Equals(wt))
                {
                    ResponseMsg.Append("{");
                    ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "0");
                    ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "您的验证码是:" + AuthenCode);
                    ResponseMsg.Append("}");
                }
                else
                {
                    ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                    ResponseMsg.Append("<PayPlatRequestParameter>");
                    ResponseMsg.Append("<PARAMETERS>");
                    ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "0");
                    ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "您的验证码是:" + AuthenCode);
                    ResponseMsg.Append("</PARAMETERS>");
                    ResponseMsg.Append("</PayPlatRequestParameter>");
                }
                return(ResponseMsg.ToString());
            }
            else
            {
                ResponseMsg.Length = 0;
                if ("json".Equals(wt))
                {
                    ResponseMsg.Append("{");
                    ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", Result);
                    ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", ErrMsg);
                    ResponseMsg.Append("}");
                }
                else
                {
                    ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                    ResponseMsg.Append("<PayPlatRequestParameter>");
                    ResponseMsg.Append("<PARAMETERS>");
                    ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", Result);
                    ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", ErrMsg);
                    ResponseMsg.Append("</PARAMETERS>");
                    ResponseMsg.Append("</PayPlatRequestParameter>");
                }
                return(ResponseMsg.ToString());
            }
        }
        catch (Exception exp)
        {
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "-25367");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "异常:" + exp.ToString());
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "-25367");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "异常:" + exp.ToString());
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }
        return(ResponseMsg.ToString());
    }
Example #7
0
    public String GetAuthenCode(String SPID, String CustID, String wt)
    {
        StringBuilder ResponseMsg = new StringBuilder();

        #region
        if (CommonUtility.IsEmpty(SPID))
        {
            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "995");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "SPID不能为空!");
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "995");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "SPID不能为空!");
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }

        if (CommonUtility.IsEmpty(CustID))
        {
            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "995");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "CustID不能为空!");
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "995");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "CustID不能为空!");
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }



        String             Phone   = String.Empty;
        BesttoneAccount    account = null;
        BesttoneAccountDAO dao     = new BesttoneAccountDAO();
        account = dao.QueryByCustID(CustID);
        if (account != null)
        {
            Phone = account.BestPayAccount;
        }
        else
        {
            //未开户
            // 返回错误信息
            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "997");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "该CustID尚未开户!");
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "997");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "该CustID尚未开户!");
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }

        #endregion


        try
        {
            //String CustID = PhoneBO.IsAuthenPhone(Phone, SPID, out ErrMsg);

            Result = CommonBizRules.SPInterfaceGrant(SPID, "GetAuthenCode", this.Context, out ErrMsg);
            if (Result != 0)
            {
                ResponseMsg.Length = 0;
                if ("json".Equals(wt))
                {
                    ResponseMsg.Append("{");
                    ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "991");
                    ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "调用下行短信接口权限未开通!");
                    ResponseMsg.Append("}");
                }
                else
                {
                    ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                    ResponseMsg.Append("<PayPlatRequestParameter>");
                    ResponseMsg.Append("<PARAMETERS>");
                    ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "991");
                    ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "调用下行短信接口权限未开通!");
                    ResponseMsg.Append("</PARAMETERS>");
                    ResponseMsg.Append("</PayPlatRequestParameter>");
                }
                return(ResponseMsg.ToString());
            }

            Random random     = new Random();
            String AuthenCode = random.Next(111111, 999999).ToString();

            DateTime DealTime = DateTime.Now;
            int      k        = PhoneBO.PhoneSelV2("", Phone, out ErrMsg); // 检查发送验证码次数
            if (k == 0)
            {
                CommonBizRules.SendMessageV3(Phone, "您正在通过翼购客户端找回支付密码,验证码为:" + AuthenCode + ",有效期2分钟。", SPID);
                Result = PhoneBO.InsertPhoneSendMassage(CustID, "您正在通过翼购客户端找回支付密码,验证码为:" + AuthenCode + ",有效期2分钟。", AuthenCode, Phone, DateTime.Now, "客户端找回支付密码", 1, 0, "1", out ErrMsg);
            }
            else
            {
                ResponseMsg.Length = 0;
                if ("json".Equals(wt))
                {
                    ResponseMsg.Append("{");
                    ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "992");
                    ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "该手机号码已经被注册过了!");
                    ResponseMsg.Append("}");
                }
                else
                {
                    ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                    ResponseMsg.Append("<PayPlatRequestParameter>");
                    ResponseMsg.Append("<PARAMETERS>");
                    ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "992");
                    ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "该手机号码已经被注册过了!");
                    ResponseMsg.Append("</PARAMETERS>");
                    ResponseMsg.Append("</PayPlatRequestParameter>");
                }
                return(ResponseMsg.ToString());
            }


            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "0");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "您的验证码是:" + AuthenCode);
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "0");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "您的验证码是:" + AuthenCode);
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }
        catch (Exception exp)
        {
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "-25367");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "异常:" + exp.ToString());
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "-25367");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "异常:" + exp.ToString());
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }

        return(ResponseMsg.ToString());
    }
Example #8
0
    public String GetAuthenCode(String SPID, String Phone)
    {
        StringBuilder ResponseMsg = new StringBuilder();

        #region
        if (CommonUtility.IsEmpty(SPID))
        {
            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "995");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "SPID不能为空!");
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "995");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "SPID不能为空!");
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }

        if (CommonUtility.IsEmpty(Phone))
        {
            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "996");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "Phone不能为空!");
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "996");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "Phone不能为空!");
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }


        #endregion


        try
        {
            String CustID = PhoneBO.IsAuthenPhone(Phone, SPID, out ErrMsg);
            if (String.IsNullOrEmpty(CustID))
            {
                ResponseMsg.Length = 0;
                if ("json".Equals(wt))
                {
                    ResponseMsg.Append("{");
                    ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "998");
                    ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "验证手机有误!手机未注册");
                    ResponseMsg.Append("}");
                }
                else
                {
                    ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                    ResponseMsg.Append("<PayPlatRequestParameter>");
                    ResponseMsg.Append("<PARAMETERS>");
                    ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "998");
                    ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "验证手机有误!手机未注册");
                    ResponseMsg.Append("</PARAMETERS>");
                    ResponseMsg.Append("</PayPlatRequestParameter>");
                }
                return(ResponseMsg.ToString());
            }

            //Result = CommonBizRules.SPInterfaceGrant(SPID, "GetAuthenCode", this.Context, out ErrMsg);
            Result = PhoneBO.SPInterfaceGrant(SPID, "GetAuthenCode", out ErrMsg);
            if (Result != 0)
            {
                ResponseMsg.Length = 0;
                if ("json".Equals(wt))
                {
                    ResponseMsg.Append("{");
                    ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "991");
                    ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "调用下行短信接口权限未开通!");
                    ResponseMsg.Append("}");
                }
                else
                {
                    ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                    ResponseMsg.Append("<PayPlatRequestParameter>");
                    ResponseMsg.Append("<PARAMETERS>");
                    ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "991");
                    ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "调用下行短信接口权限未开通!");
                    ResponseMsg.Append("</PARAMETERS>");
                    ResponseMsg.Append("</PayPlatRequestParameter>");
                }
                return(ResponseMsg.ToString());
            }

            Random r          = new Random();
            String AuthenCode = "";
            AuthenCode += r.Next(100000, 999999).ToString();
            int k = PhoneBO.PhoneSelV2("", Phone, out ErrMsg);
            if (k == 0)
            {
                CommonBizRules.SendMessageV3(Phone, "您的验证码是:" + AuthenCode, SPID);
                Result = PhoneBO.InsertPhoneSendMassage(CustID, "找回密码时下发的验证码信息内容", AuthenCode, Phone, DateTime.Now, "描述未知", 1, 0, "1", out ErrMsg);
            }
            if (Result == 0)
            {
                ResponseMsg.Length = 0;
                if ("json".Equals(wt))
                {
                    ResponseMsg.Append("{");
                    ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "0");
                    ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "您的验证码是:" + AuthenCode);
                    ResponseMsg.Append("}");
                }
                else
                {
                    ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                    ResponseMsg.Append("<PayPlatRequestParameter>");
                    ResponseMsg.Append("<PARAMETERS>");
                    ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "0");
                    ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "您的验证码是:" + AuthenCode);
                    ResponseMsg.Append("</PARAMETERS>");
                    ResponseMsg.Append("</PayPlatRequestParameter>");
                }
                return(ResponseMsg.ToString());
            }
            else
            {
                ResponseMsg.Length = 0;
                if ("json".Equals(wt))
                {
                    ResponseMsg.Append("{");
                    ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "-1002");
                    ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "发送验证码失败!");
                    ResponseMsg.Append("}");
                }
                else
                {
                    ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                    ResponseMsg.Append("<PayPlatRequestParameter>");
                    ResponseMsg.Append("<PARAMETERS>");
                    ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "-1002");
                    ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "发送验证码失败!");
                    ResponseMsg.Append("</PARAMETERS>");
                    ResponseMsg.Append("</PayPlatRequestParameter>");
                }
                return(ResponseMsg.ToString());
            }
        }catch (Exception exp)
        {
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "-25367");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "异常:" + exp.ToString());
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "-25367");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "异常:" + exp.ToString());
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }

        return(ResponseMsg.ToString());
    }
Example #9
0
    public String GetAuthenCode(String SPID, String Phone)
    {
        StringBuilder ResponseMsg = new StringBuilder();

        #region
        if (CommonUtility.IsEmpty(SPID))
        {
            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "995");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "SPID不能为空!");
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "995");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "SPID不能为空!");
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }

        if (CommonUtility.IsEmpty(Phone))
        {
            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "996");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "Phone不能为空!");
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "996");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "Phone不能为空!");
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }


        #endregion


        try
        {
            //String CustID = PhoneBO.IsAuthenPhone(Phone, SPID, out ErrMsg);

            //Result = CommonBizRules.SPInterfaceGrant(SPID, "GetAuthenCode", this.Context, out ErrMsg);
            Result = PhoneBO.SPInterfaceGrant(SPID, "GetAuthenCode", out ErrMsg);
            if (Result != 0)
            {
                ResponseMsg.Length = 0;
                if ("json".Equals(wt))
                {
                    ResponseMsg.Append("{");
                    ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", Result);
                    ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "调用下行短信接口权限未开通!" + ErrMsg);
                    ResponseMsg.Append("}");
                }
                else
                {
                    ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                    ResponseMsg.Append("<PayPlatRequestParameter>");
                    ResponseMsg.Append("<PARAMETERS>");
                    ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "991");
                    ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "调用下行短信接口权限未开通!");
                    ResponseMsg.Append("</PARAMETERS>");
                    ResponseMsg.Append("</PayPlatRequestParameter>");
                }
                return(ResponseMsg.ToString());
            }

            Random random     = new Random();
            String AuthenCode = random.Next(111111, 999999).ToString();

            DateTime DealTime = DateTime.Now;
            int      k        = 0;
            //int k = PhoneBO.PhoneSelV2("", Phone, out ErrMsg);    // 验证电话是否可以做认证电话(这里的电话包括手机和电话)
            if (k == 0)
            {
                CommonBizRules.SendMessageV3(Phone, "欢迎注册天翼账号,验证码为" + AuthenCode + ",有效期2分钟。", SPID);
                Result = PhoneBO.InsertPhoneSendMassage("", "欢迎注册天翼账号,验证码为" + AuthenCode + ",有效期2分钟。", AuthenCode, Phone, DateTime.Now, "客户端注册", 1, 0, "1", out ErrMsg);
            }
            else
            {
                ResponseMsg.Length = 0;
                if ("json".Equals(wt))
                {
                    ResponseMsg.Append("{");
                    ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "992");
                    ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "该手机号码已经被注册过了!");
                    ResponseMsg.Append("}");
                }
                else
                {
                    ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                    ResponseMsg.Append("<PayPlatRequestParameter>");
                    ResponseMsg.Append("<PARAMETERS>");
                    ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "992");
                    ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "该手机号码已经被注册过了!");
                    ResponseMsg.Append("</PARAMETERS>");
                    ResponseMsg.Append("</PayPlatRequestParameter>");
                }
                return(ResponseMsg.ToString());
            }


            ResponseMsg.Length = 0;
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "0");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "您的验证码是:" + AuthenCode);
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "0");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "您的验证码是:" + AuthenCode);
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }
        catch (Exception exp)
        {
            if ("json".Equals(wt))
            {
                ResponseMsg.Append("{");
                ResponseMsg.AppendFormat("\"errcode\":\"{0}\",", "-25367");
                ResponseMsg.AppendFormat("\"errmsg\":\"{0}\"", "异常:" + exp.ToString());
                ResponseMsg.Append("}");
            }
            else
            {
                ResponseMsg.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                ResponseMsg.Append("<PayPlatRequestParameter>");
                ResponseMsg.Append("<PARAMETERS>");
                ResponseMsg.AppendFormat("<ErrCode>{0}</ErrCode>", "-25367");
                ResponseMsg.AppendFormat("<ErrMsg>{0}</ErrMsg>", "异常:" + exp.ToString());
                ResponseMsg.Append("</PARAMETERS>");
                ResponseMsg.Append("</PayPlatRequestParameter>");
            }
            return(ResponseMsg.ToString());
        }

        return(ResponseMsg.ToString());
    }