protected void btnUpdate_Click(object sender, EventArgs e) { int userId = 0; if (this.radType1.Checked) { userId = accountsFacade.GetUserIDByNickName(txtUser.Text.Trim()); if (userId == 0) { Show("您输入的用户昵称错误,请重新输入!"); this.txtUser.Text = ""; this.txtUser.Focus(); return; } } else { Message umsg = accountsFacade.GetUserGlobalInfo(0, Utility.StrToInt(txtUser.Text.Trim(), 0), ""); if (!umsg.Success) { Show("您输入的游戏ID号码错误,请重新输入!"); this.txtUser.Text = ""; this.txtUser.Focus(); return; } UserInfo user = umsg.EntityList[0] as UserInfo; userId = user.UserID; } int score = Utility.StrToInt(txtScore.Text.Trim( ), 0); string note = TextFilter.FilterScript(txtNote.Text.Trim( )); if (score <= 0) { Show("抱歉,您每笔转出数目最少 1000 金币!"); return; } Message msg = treasureFacade.InsureTransfer(Fetch.GetUserCookie().UserID, TextEncrypt.EncryptPassword(CtrlHelper.GetText(txtInsurePass)), userId, score, 1000, GameRequest.GetUserIP(), note); if (msg.Success) { ShowAndRedirect("转账成功!", "/Member/InsureTransfer.aspx"); } else { Show(msg.Content); } }