fix(ldap): 测试连接以表单信息为准

This commit is contained in:
fit2cloud-chenyw 2023-01-05 16:43:29 +08:00
parent 014401e68b
commit ee8b461992

View File

@ -31,10 +31,10 @@ public class XLdapServer {
} }
@PostMapping("/testConn") @PostMapping("/testConn")
public void testConn() { public void testConn(@RequestBody List<SysSettingDto> settings) {
LdapXpackService ldapXpackService = SpringContextUtil.getBean(LdapXpackService.class); LdapXpackService ldapXpackService = SpringContextUtil.getBean(LdapXpackService.class);
try { try {
ldapXpackService.testConn(); ldapXpackService.testConn(settings);
}catch(Exception e) { }catch(Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }