|
@@ -235,15 +235,17 @@ class MVHomeController: MVBaseController {
|
|
|
if(MVHotVideoModel.getCacheData().count == 0){
|
|
|
self?.showNetworkError(isHidden: false)
|
|
|
}
|
|
|
+
|
|
|
+ //没有网时查看有无缓存
|
|
|
+ let cacheData = MVHotVideoModel.getCacheData()
|
|
|
+ if(cacheData.count > 0){
|
|
|
+ BFLog(message: "有缓存数据 ")
|
|
|
+ self?.refreshData(hotVideos: cacheData)
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- let cacheData = MVHotVideoModel.getCacheData()
|
|
|
- if(cacheData.count > 0){
|
|
|
- BFLog(message: "有缓存数据 ")
|
|
|
- refreshData(hotVideos: cacheData)
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
// 播放器进度和状态回调
|
|
|
PQSingletoVideoPlayer.shared.progressBloc = { [weak self] _, playProgress, duration in
|