Merge pull request #116 from Dishesdog/fix_dynamic

Fix dynamic
This commit is contained in:
Lkeme 2021-08-23 17:06:37 +08:00 committed by GitHub
commit b96db4aec7
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -76,7 +76,7 @@ class GroupSignIn
if ($de_raw['code'] == '710001') {
Log::warning('在应援团{' . $groupInfo['group_name'] . '}中签到失败, 亲密度已达上限');
} else {
print_r($de_raw);
// print_r($de_raw);
Log::warning('在应援团{' . $groupInfo['group_name'] . '}中签到失败, 原因待查');
}
return false;

View File

@ -93,7 +93,7 @@ class Live
];
$raw = Curl::get('other', $url, $payload);
$de_raw = json_decode($raw, true);
print_r($de_raw);
// print_r($de_raw);
if ($de_raw['code'] != '0') {
return 23058;
}