|
|
@@ -257,8 +257,8 @@ public class IpTokenInterfaceServiceImpl implements IpTokenInterfaceService {
|
|
|
throw new RuntimeException("参数异常");
|
|
|
}
|
|
|
}else{
|
|
|
- IpTokenInterfacePO ipTokenInterfacePO1 = ipTokenInterfaceRepository.findByAidAndIid(param.getAccountId(), param.getInterfaceId());
|
|
|
- if(ipTokenInterfacePO1 != null){
|
|
|
+ List<IpTokenInterfacePO> interfaceList = ipTokenInterfaceRepository.queryRefList(param.getAccountId(), param.getInterfaceId());
|
|
|
+ if(!interfaceList.isEmpty()){
|
|
|
throw new RuntimeException("该账号下已存在对应接口");
|
|
|
}
|
|
|
|