mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 09:30:10 +08:00
[fix]获取抽奖帖失败处理
This commit is contained in:
parent
afcb4d96ca
commit
1301d81258
@ -49,6 +49,10 @@ class Dynamic
|
|||||||
$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);
|
||||||
$data = json_decode($data, true);
|
$data = json_decode($data, true);
|
||||||
|
if (!isset($data['data'])) {
|
||||||
|
Log::warning("获取抽奖贴失败: {$data['message']}");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// new
|
// new
|
||||||
foreach ($data['data']['cards'] as $article) {
|
foreach ($data['data']['cards'] as $article) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user