mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-18 17:00:06 +08:00
[fix] ActivityLottery
This commit is contained in:
parent
1dabaa7213
commit
3dbf3cf13a
@ -123,7 +123,9 @@ class ActivityLottery extends BasePlugin
|
||||
if ($ending) {
|
||||
Cache::set('config', $this->config);
|
||||
} else {
|
||||
$this->config = Cache::get('config');
|
||||
print_r(Cache::get('config'));
|
||||
$this->config = ($tmp = Cache::get('config')) ? $tmp : [];
|
||||
//
|
||||
$keys = ['invalid_sids', 'wait_add_infos', 'wait_get_infos', 'wait_do_infos'];
|
||||
foreach ($keys as $key) {
|
||||
if (!isset($this->config[$key])) $this->config[$key] = [];
|
||||
@ -298,7 +300,8 @@ class ActivityLottery extends BasePlugin
|
||||
//
|
||||
$url = 'aHR0cHM6Ly9yYXcua2dpdGh1Yi5jb20vbGtlbWUvQmlsaUhlbHBlci1wZXJzb25hbC9tYXN0ZXIvcmVzb3VyY2VzL2FjdGl2aXR5X2luZm9zLmpzb24=';
|
||||
$url = base64_decode($url);
|
||||
$response = Request::getJson(false, 'other', $url);
|
||||
$response = Request::getJson(true, 'other', $url);
|
||||
print_r($response);
|
||||
//
|
||||
$this->_fetchRemoteInfos($response['data']);
|
||||
}
|
||||
|
||||
@ -104,12 +104,6 @@
|
||||
"url": "https://www.bilibili.com/blackboard/activity-Gjn1nAHMNq.html",
|
||||
"update_time": "2023-08-20 20:57:08"
|
||||
},
|
||||
{
|
||||
"sid": "newLottery_77ac403d-29fc-11ee-9251-a4ae12675bc2",
|
||||
"title": "和平精空投节视频征集",
|
||||
"url": "https://www.bilibili.com/blackboard/activity-3Dz7tbzGSz.html",
|
||||
"update_time": "2023-08-20 20:57:10"
|
||||
},
|
||||
{
|
||||
"sid": "newLottery_8e0055f5-27b1-11ee-9251-a4ae12675bc2",
|
||||
"title": "人人皆可狮子座",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user