From 9ae4555045967e52a65211e64ff4b7cb382d420b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=9C=E7=8B=97?= <794329728@qq.com> Date: Mon, 23 Aug 2021 16:13:19 +0800 Subject: [PATCH] [fix]fix Warning --- src/plugin/Dynamic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugin/Dynamic.php b/src/plugin/Dynamic.php index 6fa868b..c8e8098 100644 --- a/src/plugin/Dynamic.php +++ b/src/plugin/Dynamic.php @@ -48,6 +48,7 @@ class Dynamic Log::info("获取关键字 $t_name - $t_id"); $url = 'https://api.vc.bilibili.com/topic_svr/v1/topic_svr/topic_new?topic_id=' . $t_id; $data = Curl::request('get', $url); + if (is_null($data)) continue; $data = json_decode($data, true); // new