public JsonResult SaveWhiteList(string account) { try { string funcId = PermissionEnum.CodeFormat((int)PermissionEnum.接口管理.帐号管理.新增白名单); if (!IsPermission(funcId)) { return(Error("您没有操作权限,请联系系统管理员!")); } string fClassID = GetFormValue("fClassID"); string fClassName = GetFormValue("fClassName"); string fIpAddress = GetFormValue("fIpAddress"); string fState = GetFormValue("fState"); int classId = fClassID.ToInt(); string remark = "授权IP请求接口!"; bool state = fState.ToBool(); var result = InterfaceAccessWhiteListService.SaveInterfaceAccessWhiteListPro(SystemID, CompanyID, account, fIpAddress, classId, fClassName, remark, state); if (result) { return(Success("ok")); } else { return(Error("fail")); } } catch (Exception ex) { return(Error(ex.Message)); } }