public object PostSetPayPwd(PostSetPayPwdModel model) { CheckUserLogin(); if (string.IsNullOrWhiteSpace(model.pwd)) { return(Json(ErrorResult <int>("支付密码不能为空"))); } MemberCapitalApplication.SetPayPwd(CurrentUser.Id, model.pwd); return(Json(new { msg = "设置成功" })); }
/// <summary> /// 设置密码 /// </summary> /// <param name="pwd"></param> /// <returns></returns> public object PostSetPayPwd(LoginModPwdModel model) { CheckUserLogin(); MemberCapitalApplication.SetPayPwd(CurrentUser.Id, model.Password); return(SuccessResult("设置成功")); }