mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 02:26:52 +08:00
fix heartbeat
Closes #929 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -105,7 +105,7 @@ class UserHttp {
|
||||
queryParameters: {
|
||||
'switch': switchStatus,
|
||||
'jsonp': 'jsonp',
|
||||
'csrf': Accounts.main.csrf,
|
||||
'csrf': Accounts.heartbeat.csrf,
|
||||
},
|
||||
);
|
||||
return res;
|
||||
@@ -127,7 +127,7 @@ class UserHttp {
|
||||
Api.clearHistory,
|
||||
queryParameters: {
|
||||
'jsonp': 'jsonp',
|
||||
'csrf': Accounts.main.csrf,
|
||||
'csrf': Accounts.heartbeat.csrf,
|
||||
},
|
||||
);
|
||||
return res;
|
||||
@@ -210,7 +210,7 @@ class UserHttp {
|
||||
data: {
|
||||
'kid': kidList.join(','),
|
||||
'jsonp': 'jsonp',
|
||||
'csrf': Accounts.main.csrf,
|
||||
'csrf': Accounts.heartbeat.csrf,
|
||||
},
|
||||
options: Options(
|
||||
contentType: Headers.formUrlEncodedContentType,
|
||||
|
||||
Reference in New Issue
Block a user