!305 修复新增参数时判断错误的问题

Merge pull request !305 from Rain/N/A
zmy
若依 2023-02-22 02:54:42 +00:00 committed by Gitee
commit 20dd6d37ea
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class SysConfigController extends BaseController
@PostMapping
public AjaxResult add(@Validated @RequestBody SysConfig config)
{
if (configService.checkConfigKeyUnique(config))
if (!configService.checkConfigKeyUnique(config))
{
return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在");
}