|
@@ -214,8 +214,11 @@ public class SyncServiceImpl implements SyncService {
|
|
|
}
|
|
|
try {
|
|
|
DomainCollectionResponse domainCollectionResponse = graphClient.domains().get();
|
|
|
- List<String> domainList = domainCollectionResponse.getValue().stream().map(com.microsoft.graph.models.Domain::getId).collect(Collectors.toList());
|
|
|
- if(!domainList.contains(list.get(0).getDomain())){
|
|
|
+ List<String> domainList = domainCollectionResponse.getValue()
|
|
|
+ .stream()
|
|
|
+ .map(domain -> domain.getId().toLowerCase()) // 将ID转换为小写
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ if(!domainList.contains(list.get(0).getDomain().toLowerCase())){
|
|
|
throw new BackendRuntimeException(SSOConstant.DOMAIN_NOT_EXIST);
|
|
|
}
|
|
|
}catch (Exception e){
|