protected void Modify_Click(object sender, EventArgs e) { /////////////////////////////////////////// StringBuilder strLog = new StringBuilder(); try { String oldPassWord = Request.Form["oldPassWord"]; String newPassWord = Request.Form["newPassWord"]; String confirmPassWord = Request.Form["confirmPassWord"]; string BindedBestpayAccount = ""; string CreateTime = ""; IsBesttoneAccountBindV5Result = CIP2BizRules.IsBesttoneAccountBindV5(CustID, out BindedBestpayAccount, out CreateTime, out ErrMsg); if (IsBesttoneAccountBindV5Result == 0) { if (!String.IsNullOrEmpty(BindedBestpayAccount)) { BesttoneAccount = BindedBestpayAccount; } } strLog.AppendFormat("【开始修改密码,事件:{0}】", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); strLog.AppendFormat("参数:oldPassWord:{0},newPassWord:{1},confirmPassWord:{2},BesttonePayAccount:{3}", oldPassWord, newPassWord, confirmPassWord, BesttoneAccount); BestPayEncryptService bpes = new BestPayEncryptService(); string e_oldPassWord = ""; string e_newPassWord = ""; string e_confirmPassWord = ""; AccountItem ai = new AccountItem(); String ResCode = ""; int QueryBesttoneAccountResult = BesttoneAccountHelper.BesttoneAccountInfoQuery(BesttoneAccount, out ai, out ResCode, out ErrMsg); if (QueryBesttoneAccountResult == 0) { if (ai != null) { e_oldPassWord = bpes.encryptNoKey(oldPassWord, ai.AccountNo); e_newPassWord = bpes.encryptNoKey(newPassWord, ai.AccountNo); e_confirmPassWord = bpes.encryptNoKey(confirmPassWord, ai.AccountNo); strLog.AppendFormat("e_oldPassWord{0},e_newPassWord{1},e_confirmPassWord{2}", e_oldPassWord, e_newPassWord, e_confirmPassWord); int ModifyBestPayPasswordResult = BesttoneAccountHelper.ModifyBestPayPassword(ai.AccountNo, e_oldPassWord, e_newPassWord, e_confirmPassWord, out ErrMsg); if (ModifyBestPayPasswordResult == 0) { success = "0"; } else { strLog.Append(",失败3"); Response.Redirect("ErrorInfo.aspx?ErrorInfo=" + ErrMsg); } } else { strLog.Append(",失败2"); Response.Redirect("ErrorInfo.aspx?ErrorInfo=账户信息未获取"); } } else { strLog.Append(",失败1"); Response.Redirect("ErrorInfo.aspx?ErrorInfo=" + ErrMsg); } } catch (System.Exception ex) { log(ex.ToString()); } finally { log(strLog.ToString()); } }