This commit is contained in:
shikong 2023-08-24 11:24:29 +08:00
parent d2a58ec221
commit ad1c20277a

View File

@ -199,7 +199,8 @@ public class MediaServiceTest {
@Test
void getMediaListTest() {
ZlmResponse<List<MediaResp>> mediaList = zlmMediaService.getMediaList(GetMediaList.builder().build());
List<MediaResp> data = mediaList.getData();
log.info("{}", mediaList);
List<MediaResp> data = Optional.ofNullable(mediaList.getData()).orElse(Collections.emptyList());
log.info("流数量 => {}", data.size());
data.forEach((item) -> {
log.info("\n{}", JsonUtils.toJson(item));