public string customerBalanceQuery() { respCustomerBalanceQueryModel model = new respCustomerBalanceQueryModel(); model.balanceType = "1"; model.balance = "8800"; model.customerNumber = "123456"; model.code = "0000"; model.message = "请求成功"; return(JsonConvert.SerializeObject(model)); }
public ActionResult CustomerBalanceQuery() { int UserId = TQuery.GetInt("UserId"); int BalanceType = TQuery.GetInt("BalanceType"); respCustomerBalanceQueryModel result = new respCustomerBalanceQueryModel(); if (UserId == 0) { result.backState = -100; result.message = ""; } else { result = YeepayDepository.CustomerBalanceQuery(UserId, (int)Logic.Platform.系统, BalanceType); } return(View(result)); }