Commit a3142debe0441b1f95a6e241d8afe17d1cea7630
1 parent
a8f315b4
2022年11月1日22:29:58 获取NS_sig3信息失败, 发送失效待办
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/java/cn/fw/freya/service/crawl/impl/KuaiShouCrawl.java
... | ... | @@ -322,6 +322,8 @@ public class KuaiShouCrawl implements CrawlStrategy, SmartLifecycle { |
322 | 322 | JSONArray videoJsonArray = new JSONArray(); |
323 | 323 | do { |
324 | 324 | JSONObject obj = this.getVideoDataByPage(accountNo, page); |
325 | + if (Objects.isNull(obj)) | |
326 | + return null; | |
325 | 327 | total = Objects.requireNonNull(obj).getInteger("totalCount"); |
326 | 328 | videoJsonArray.addAll(Optional.ofNullable(obj.getJSONArray("photoList")).orElse(new JSONArray())); |
327 | 329 | page++; | ... | ... |