updateReadProgress method

Future<bool> updateReadProgress(
  1. String storyId,
  2. int readDuration
)

更新阅读进度 storyId 故事ID readDuration 阅读时长(毫秒)

Implementation

Future<bool> updateReadProgress(String storyId, int readDuration) async {
  try {
    return await PangrowthContent.updateReadProgress(storyId, readDuration);
  } catch (e) {
    debugPrint('更新阅读进度失败: $e');
    return false;
  }
}