fix heartbeat

Closes #929

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-04 12:08:04 +08:00
parent 3208661a52
commit d246462535
8 changed files with 28 additions and 16 deletions

View File

@@ -620,7 +620,7 @@ class VideoHttp {
await Request().post(
Api.roomEntryAction,
queryParameters: {
'csrf': Accounts.main.csrf,
'csrf': Accounts.heartbeat.csrf,
},
data: {
'room_id': roomId,
@@ -638,7 +638,7 @@ class VideoHttp {
queryParameters: {
'aid': ?aid,
'type': ?type,
'csrf': Accounts.main.csrf,
'csrf': Accounts.heartbeat.csrf,
},
);
}
@@ -665,7 +665,7 @@ class VideoHttp {
'type': videoType.type,
'sub_type': ?subType,
'played_time': progress,
'csrf': Accounts.main.csrf,
'csrf': Accounts.heartbeat.csrf,
},
);
}
@@ -681,7 +681,7 @@ class VideoHttp {
'desc': desc,
'oid': oid,
'upper_mid': upperMid,
'csrf': Accounts.main.csrf,
'csrf': Accounts.heartbeat.csrf,
},
);
}