public JsonResult UpdateTradeSet() { string formString = GameRequest.GetFormString("sData"); if (!(formString == "")) { CashSetting model = JsonHelper.DeserializeJsonToObject <CashSetting>(formString); try { FacadeManage.aideAccountsFacade.UpdatePlayerSetting(model); return(Json(new { IsOk = true, Msg = "设置成功" })); } catch (Exception ex) { return(Json(new { IsOk = false, Msg = ex.Message })); } } return(Json(new { IsOk = false, Msg = "参数错误" })); }
protected void Page_Load(object sender, System.EventArgs e) { if (!base.IsPostBack) { int queryInt = GameRequest.GetQueryInt("userid", 0); this.UId = queryInt; UserTicketInfo userTicketInfo = Fetch.GetUserCookie(); if (userTicketInfo == null || userTicketInfo.UserID != queryInt) { string queryString = GameRequest.GetQueryString("signature"); string queryString2 = GameRequest.GetQueryString("time"); Message message = FacadeManage.aideAccountsFacade.CheckUserSignature(queryInt, queryString2, queryString); if (!message.Success) { base.Response.Write(message.Content); base.Response.End(); } UserInfo userInfo = message.EntityList[0] as UserInfo; userTicketInfo = userInfo.ToUserTicketInfo(); Fetch.SetUserCookie(userTicketInfo); } Message bankBindInfo = FacadeManage.aideAccountsFacade.GetBankBindInfo(queryInt); if (!bankBindInfo.Success) { Log.Write(bankBindInfo.Content, "tixian"); } else { this.isBind = 1; System.Data.DataSet dataSet = (bankBindInfo.EntityList != null && bankBindInfo.EntityList.Count > 0) ? (bankBindInfo.EntityList[0] as System.Data.DataSet) : null; if (dataSet != null && dataSet.Tables.Count > 0) { System.Data.DataTable dataTable = dataSet.Tables[0]; this.name = dataTable.Rows[0]["Compellation"].ToString(); string text = dataTable.Rows[0]["BankNo"].ToString(); if (!string.IsNullOrEmpty(text) && text.Length >= 16) { this.account = text.Substring(0, 4) + "**********" + text.Substring(13); } this.insure = dataTable.Rows[0]["InsureScore"].ToString(); } CashSetting cashSetting = FacadeManage.aideAccountsFacade.PlayerCashInfo(); if (cashSetting != null) { this.BalancePrice = cashSetting.BalancePrice.ToString(); this.MinBalance = cashSetting.MinBalance.ToString(); this.MinCounterFee = cashSetting.MinCounterFee.ToString(); this.CounterFee = cashSetting.CounterFee * 100.0; } } } }
public void UpdatePlayerSetting(CashSetting model) { aideAccountsData.UpdatePlayerSetting(model); }
public ActionResult TradeSet() { CashSetting model = FacadeManage.aideAccountsFacade.PlayerCashInfo(1); return(View(model)); }