mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-20 18:40:05 +08:00
commit
1baae21060
@ -48,9 +48,9 @@ class Dynamic
|
|||||||
Log::info("获取关键字 $t_name - $t_id");
|
Log::info("获取关键字 $t_name - $t_id");
|
||||||
$url = 'https://api.vc.bilibili.com/topic_svr/v1/topic_svr/topic_new?topic_id=' . $t_id;
|
$url = 'https://api.vc.bilibili.com/topic_svr/v1/topic_svr/topic_new?topic_id=' . $t_id;
|
||||||
$data = Curl::request('get', $url);
|
$data = Curl::request('get', $url);
|
||||||
|
// 失败跳过
|
||||||
if (is_null($data)) continue;
|
if (is_null($data)) continue;
|
||||||
$data = json_decode($data, true);
|
$data = json_decode($data, true);
|
||||||
|
|
||||||
// new
|
// new
|
||||||
foreach ($data['data']['cards'] as $article) {
|
foreach ($data['data']['cards'] as $article) {
|
||||||
$article_id = $article['desc']['dynamic_id'];
|
$article_id = $article['desc']['dynamic_id'];
|
||||||
|
|||||||
@ -130,5 +130,6 @@ class LiveReservation
|
|||||||
'text' => $data['lottery_prize_info']['text'], // "预约有奖:小电视年糕抱枕、哔哩哔哩小电视樱花毛绒抱枕大号、哔哩哔哩小夜灯"
|
'text' => $data['lottery_prize_info']['text'], // "预约有奖:小电视年糕抱枕、哔哩哔哩小电视樱花毛绒抱枕大号、哔哩哔哩小夜灯"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user