设备目录查询
This commit is contained in:
parent
3db949ed26
commit
e1b8db65a0
@ -83,7 +83,7 @@ public class CatalogService {
|
|||||||
data.addAll(catalogResponseDTO.getDeviceList().getDeviceList());
|
data.addAll(catalogResponseDTO.getDeviceList().getDeviceList());
|
||||||
if(curNum >= sumNum){
|
if(curNum >= sumNum){
|
||||||
log.info("获取完成");
|
log.info("获取完成");
|
||||||
onComplete();
|
subscribe.getSipRequestSubscribe().delPublisher(sn);
|
||||||
} else {
|
} else {
|
||||||
subscription.request(1);
|
subscription.request(1);
|
||||||
}
|
}
|
||||||
@ -91,17 +91,13 @@ public class CatalogService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(Throwable throwable) {
|
public void onError(Throwable throwable) {
|
||||||
if(throwable == null){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
throwable.printStackTrace();
|
throwable.printStackTrace();
|
||||||
onComplete();
|
onComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onComplete() {
|
public void onComplete() {
|
||||||
log.info("返回结果 {}",result.complete(data));
|
log.info("返回结果 {} {}", result.complete(data),data);
|
||||||
subscribe.getSipRequestSubscribe().delPublisher(callId);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
provider.sendRequest(request);
|
provider.sendRequest(request);
|
||||||
|
Loading…
Reference in New Issue
Block a user