mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 01:20:08 +08:00
[fix] garbage
This commit is contained in:
parent
2a9e956586
commit
a20adb5903
@ -62,10 +62,11 @@ class ApiTask
|
|||||||
$user = User::parseCookie();
|
$user = User::parseCookie();
|
||||||
//
|
//
|
||||||
$url = 'https://api.bilibili.com/pgc/activity/score/task/receive';
|
$url = 'https://api.bilibili.com/pgc/activity/score/task/receive';
|
||||||
$payload = array_merge([
|
$payload = [
|
||||||
'taskCode' => $task_code,
|
'taskCode' => $task_code,
|
||||||
'csrf' => $user['csrf'],
|
'csrf' => $user['csrf'],
|
||||||
], self::$payload);
|
'statistics' => getDevice('app.bili_a.statistics'),
|
||||||
|
];
|
||||||
$headers = array_merge([], self::$headers);
|
$headers = array_merge([], self::$headers);
|
||||||
return Request::putJson(true, 'app', $url, Sign::common($payload), $headers);
|
return Request::putJson(true, 'app', $url, Sign::common($payload), $headers);
|
||||||
}
|
}
|
||||||
@ -81,11 +82,12 @@ class ApiTask
|
|||||||
$user = User::parseCookie();
|
$user = User::parseCookie();
|
||||||
//
|
//
|
||||||
$url = 'https://api.bilibili.com/pgc/activity/score/task/complete';
|
$url = 'https://api.bilibili.com/pgc/activity/score/task/complete';
|
||||||
$payload = array_merge([
|
$payload = [
|
||||||
'taskCode' => $task_code,
|
'taskCode' => $task_code,
|
||||||
'csrf' => $user['csrf'],
|
'csrf' => $user['csrf'],
|
||||||
'ts' => time(),
|
'ts' => time(),
|
||||||
], self::$payload);
|
'statistics' => getDevice('app.bili_a.statistics'),
|
||||||
|
];
|
||||||
$headers = array_merge([
|
$headers = array_merge([
|
||||||
'Content-Type' => 'application/json'
|
'Content-Type' => 'application/json'
|
||||||
], self::$headers);
|
], self::$headers);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user