/// <summary> /// 查询最近6个月内提现明细 /// </summary> /// <param name="openid"></param> /// <returns></returns> public JsonResult GetCashOutDesc(string openid) { CashOutDao cashOutDao = new CashOutDao(); try { var list = cashOutDao.GetCashOut(openid); return(Json(new { success = true, data = list })); } catch (Exception ex) { LogHelper.WriteLog(typeof(MeController), "查询提现明细出错:" + ex.Message); LogHelper.WriteLog(typeof(MeController), "查询提现明细出错:" + ex.StackTrace); return(Json(new { success = false, message = "查询提现明细出错,请联系客服处理。" })); } }
public JsonResult ApplyCashOut(string openid, decimal cashouttotal) { CashOutDao cashOutDao = new CashOutDao(); try { string result = cashOutDao.CashOut(openid, cashouttotal); if (result == "成功") { return(Json(new { success = true })); } else { return(Json(new { success = false, message = result })); } }catch (Exception ex) { LogHelper.WriteLog(typeof(MeController), "提现出错:" + ex.Message); LogHelper.WriteLog(typeof(MeController), "提现出错:" + ex.StackTrace); return(Json(new { success = false, message = "提现出错,请联系客服处理。" })); } }