This commit is contained in:
root
2026-10-16 13:51:00 +08:00
parent 6bf949949c
commit 8fc899d0a9
3830 changed files with 11228 additions and 188377 deletions
+9
View File
@@ -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>>(