mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 01:20:08 +08:00
commit
1baae21060
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -130,5 +130,6 @@ class LiveReservation
|
||||
'text' => $data['lottery_prize_info']['text'], // "预约有奖:小电视年糕抱枕、哔哩哔哩小电视樱花毛绒抱枕大号、哔哩哔哩小夜灯"
|
||||
];
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user