From a3142debe0441b1f95a6e241d8afe17d1cea7630 Mon Sep 17 00:00:00 2001 From: 王明元 <97082371@qq.com> Date: Tue, 1 Nov 2022 22:30:49 +0800 Subject: [PATCH] 2022年11月1日22:29:58 获取NS_sig3信息失败, 发送失效待办 --- src/main/java/cn/fw/freya/service/crawl/impl/KuaiShouCrawl.java | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/src/main/java/cn/fw/freya/service/crawl/impl/KuaiShouCrawl.java b/src/main/java/cn/fw/freya/service/crawl/impl/KuaiShouCrawl.java index 717d953..fe9319b 100644 --- a/src/main/java/cn/fw/freya/service/crawl/impl/KuaiShouCrawl.java +++ b/src/main/java/cn/fw/freya/service/crawl/impl/KuaiShouCrawl.java @@ -322,6 +322,8 @@ public class KuaiShouCrawl implements CrawlStrategy, SmartLifecycle { JSONArray videoJsonArray = new JSONArray(); do { JSONObject obj = this.getVideoDataByPage(accountNo, page); + if (Objects.isNull(obj)) + return null; total = Objects.requireNonNull(obj).getInteger("totalCount"); videoJsonArray.addAll(Optional.ofNullable(obj.getJSONArray("photoList")).orElse(new JSONArray())); page++; -- libgit2 0.22.2