|
|
|
@ -1135,6 +1135,7 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
|
String account = ((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getDomainControlAccount(); |
|
|
|
List<SysProxyAddress> addresses=technicalSpecificationMapper.getSysProxyAddress(); |
|
|
|
boolean falseFlag=true; |
|
|
|
String baseUrl = ""; |
|
|
|
for (SysProxyAddress address : addresses) { |
|
|
|
// data.setUrl(data.getUrl().replaceAll(addresses.get(i).getPhysicalAddress(), addresses.get(i).getProxyAddress())); |
|
|
|
String str = data.getUrl().trim(); |
|
|
|
@ -1153,6 +1154,7 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
|
} |
|
|
|
} |
|
|
|
falseFlag = false; |
|
|
|
baseUrl = data.getUrl(); |
|
|
|
data.setUrl(result); |
|
|
|
break; |
|
|
|
} |
|
|
|
@ -1163,7 +1165,7 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
|
if (StringUtils.isEmpty(account)){ |
|
|
|
throw new RuntimeException("未绑定域控账号!"); |
|
|
|
} |
|
|
|
if (!checkLdapDirectory.checkUserLdapDirectory(account,data.getUrl().trim())) { |
|
|
|
if (!checkLdapDirectory.checkUserLdapDirectory(account,baseUrl)) { |
|
|
|
throw new RuntimeException("文件服务权限不足!"); |
|
|
|
} |
|
|
|
return data; |
|
|
|
|