up
This commit is contained in:
@@ -34,6 +34,15 @@ class VideoService {
|
||||
static Future<Map<String, dynamic>> fetchDetail(int videoId) =>
|
||||
ApiClient.get<Map<String, dynamic>>(Endpoints.videoDetail(videoId));
|
||||
|
||||
/// 当前视频所属系列 + 全部集数(播放器抽屉用)
|
||||
static Future<Map<String, dynamic>> fetchVideoSeries(int videoId) async {
|
||||
try {
|
||||
return await ApiClient.get<Map<String, dynamic>>(Endpoints.videoSeries(videoId));
|
||||
} catch (_) {
|
||||
return {'has_series': false};
|
||||
}
|
||||
}
|
||||
|
||||
/// 5.3 观看上报(计费):开始播放时调用,客户端已按 video_id+日期 本地去重
|
||||
static Future<WatchResult> reportWatch(int videoId, {int? position}) async {
|
||||
final data = await ApiClient.post<Map<String, dynamic>>(
|
||||
|
||||
Reference in New Issue
Block a user