diff --git a/src/plugin/Dynamic.php b/src/plugin/Dynamic.php index c8e8098..3ee220a 100644 --- a/src/plugin/Dynamic.php +++ b/src/plugin/Dynamic.php @@ -48,9 +48,9 @@ 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 foreach ($data['data']['cards'] as $article) { $article_id = $article['desc']['dynamic_id']; @@ -302,4 +302,4 @@ class Dynamic } return false; } -} \ No newline at end of file +} diff --git a/src/plugin/LiveReservation.php b/src/plugin/LiveReservation.php index 45961fc..e5da383 100644 --- a/src/plugin/LiveReservation.php +++ b/src/plugin/LiveReservation.php @@ -130,5 +130,6 @@ class LiveReservation 'text' => $data['lottery_prize_info']['text'], // "预约有奖:小电视年糕抱枕、哔哩哔哩小电视樱花毛绒抱枕大号、哔哩哔哩小夜灯" ]; } + return false; } } \ No newline at end of file