public IActionResult ChangeMute([FromQuery] User user) { if (!JudgeRoles(1)) { return(Json(new { code = -1, msg = "您没有权限进行此操作!" })); } if (UserSystem.ChangeMute(user)) { if (user.Coright == 0) { AdminSystem.AddLog(GetAdminName(), "禁言用户:" + user.Userid); } else { AdminSystem.AddLog(GetAdminName(), "解禁用户:" + user.Userid); } return(Json(new { code = 0, msg = "修改禁言状态成功!" })); } return(Json(new { code = -1, msg = "更改失败!" })); }