opt: non null (#1091)

* opt: type

* opt: type 2

* opt: type 3
This commit is contained in:
My-Responsitories
2025-08-23 18:25:41 +08:00
committed by GitHub
parent 6009668427
commit 3c34e43827
75 changed files with 400 additions and 362 deletions

View File

@@ -1430,12 +1430,12 @@ class PlPlayerController {
int progress, {
HeartBeatType type = HeartBeatType.playing,
bool isManual = false,
dynamic aid,
dynamic bvid,
dynamic cid,
dynamic epid,
dynamic seasonId,
dynamic pgcType,
Object? aid,
Object? bvid,
Object? cid,
Object? epid,
Object? seasonId,
Object? pgcType,
VideoType? videoType,
}) async {
if (isLive) {
@@ -1460,7 +1460,7 @@ class PlPlayerController {
await VideoHttp.heartBeat(
aid: aid ?? _aid,
bvid: bvid ?? _bvid,
cid: cid ?? _cid,
cid: cid ?? _cid!,
progress: isComplete ? -1 : progress,
epid: epid ?? _epid,
seasonId: seasonId ?? _seasonId,
@@ -1475,7 +1475,7 @@ class PlPlayerController {
await VideoHttp.heartBeat(
aid: aid ?? _aid,
bvid: bvid ?? _bvid,
cid: cid ?? _cid,
cid: cid ?? _cid!,
progress: progress,
epid: epid ?? _epid,
seasonId: seasonId ?? _seasonId,
@@ -1633,8 +1633,8 @@ class PlPlayerController {
'/x/player/videoshot',
queryParameters: {
// 'aid': IdUtils.bv2av(_bvid),
'bvid': _bvid,
'cid': _cid,
'bvid': _bvid!,
'cid': _cid!,
'index': 1,
},
options: Options(