调整 /register 只注册已启用的设备

This commit is contained in:
shikong 2023-09-21 09:01:28 +08:00
parent 9c5e20ff8e
commit 99467db9d8

View File

@ -81,7 +81,7 @@ public class RegisterService {
@SneakyThrows
public CompletableFuture<JsonResponse<Void>> register(MockingDevice device) {
keepaliveService.unKeepalive(device);
CompletableFuture<JsonResponse<Boolean>> result = new CompletableFuture<>();
CompletableFuture<JsonResponse<Void>> result = new CompletableFuture<>();
if(!device.getEnable()){
result.complete(JsonResponse.success(null));
}