提交 c6ff4e4e authored 作者: yueweilu's avatar yueweilu

add

上级 f7d19118
...@@ -929,7 +929,10 @@ class ReadController extends FullLifeCycleController with GetSingleTickerProvide ...@@ -929,7 +929,10 @@ class ReadController extends FullLifeCycleController with GetSingleTickerProvide
/// 添加阅读时长 /// 添加阅读时长
void _addReadTime({required type}) async{ void _addReadTime({required type}) async{
LibraryAPI.addReadTime(bookId: bookId, readTypes: type); final status = await Tools.checkCurrentNetStatus();
if(status){
LibraryAPI.addReadTime(bookId: bookId, readTypes: type);
}
} }
/// 获取离线文件路径 /// 获取离线文件路径
void getBookDown() async{ void getBookDown() async{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论