调整 /register 只注册已启用的设备
This commit is contained in:
parent
9c5e20ff8e
commit
99467db9d8
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user