【fix bug】系统校验规则-功能测试弹框,出现错误提示

This commit is contained in:
tianwenbo
2023-04-06 16:15:07 +08:00
parent 7d10fc3faa
commit e8ad0d1d74
@@ -84,7 +84,7 @@ public class SysCheckRuleController extends JeroController<SysCheckRule, ISysChe
return Results.error("该编码不存在");
}
JSONObject errorResult = sysCheckRuleService.checkValue(sysCheckRule, URLDecoder.decode(value, "UTF-8"));
if (errorResult == null) {
if (errorResult.isEmpty()) {
return Results.OK();
} else {
Results<Object> r = Results.error(errorResult.getString("message"));