/// <summary> /// 编辑 SystemConfig 信息 /// </summary> /// <returns></returns> public async Task <IActionResult> OnPostEditAsync([FromBody] FullSystemConfig fullSystemConfig) { var val = this.Validator(fullSystemConfig.SystemName, "系统名称", "SystemName", false); if (!ModelState.IsValid) { return(Ok(false, string.Join(",", val.ModelState.Values))); } var systemConfig = await _systemConfigService.GetObjectAsync(z => true); //暂时只允许修改 SystemName systemConfig.Update(fullSystemConfig.SystemName, systemConfig.MchId, systemConfig.MchKey, systemConfig.TenPayAppId, systemConfig.HideModuleManager); await _systemConfigService.SaveObjectAsync(systemConfig); base.SetMessager(MessageType.success, $"修改成功!"); return(Ok(new { systemName = systemConfig.SystemName })); }