//提现申请 public ActionResult Withdraw() { WithdrawParamter param = GetRequestParamter <WithdrawParamter>(); bool isret; tMembersEntity member; ActionResult ar = AnalysisToken(param, out isret, out member); if (isret) { return(ar); } if (!MD5Helper.PwdEncryption(param.pwd).Equals(member.mbTwoPwd)) { return(RetJsonResult(ApiResponseCodeEnum.Fail, "二级密码不正确")); } tUserWithdrawRecordEntity entity = new tUserWithdrawRecordEntity() { mbId = param.user.Id, bankId = param.bankId, withdrawAmount = param.amount * 10000, ip = IPAddressHelper.GetClientIPAddress, client = param.clientType }; string ret; if (tUserWithdrawRecordBLL.Instance.Withdraw(entity, out ret)) { return(RetJsonResult(ApiResponseCodeEnum.Success, "提交成功")); } return(RetJsonResult(ApiResponseCodeEnum.Success, ret.IsEmpty() ? "提交失败" : ret)); }
/// <summary> /// 保存 /// </summary> /// <param name="entity"></param> /// <param name="keyValue"></param> public bool SubmitForm(tUserWithdrawRecordEntity entity, int keyValue) { if (keyValue > 0) { return(this.BaseRepository().Update(entity) > 0); } else { return(this.BaseRepository().Insert(entity) > 0); } }
//提现 public bool Withdraw(tUserWithdrawRecordEntity entity, out string ret) { ret = this.BaseRepository().ExecuteByProc <string>("proc_Withdraw", new { @ret = "", @mbId = entity.mbId, @bankId = entity.bankId, @amount = entity.withdrawAmount, @ip = entity.ip, @client = entity.client }); return(ret.IsEmpty()); }
//提现 public bool Withdraw(tUserWithdrawRecordEntity entity, out string ret) { return(dal.Withdraw(entity, out ret)); }
/// <summary> /// 保存 /// </summary> /// <param name="entity"></param> /// <param name="keyValue"></param> public bool SubmitForm(tUserWithdrawRecordEntity entity, int keyValue) { return(dal.SubmitForm(entity, keyValue)); }