|
@@ -238,11 +238,11 @@ class MVHomeController: MVBaseController {
|
|
|
|
|
|
self?.getData()
|
|
|
} else {
|
|
|
- if(MVHotVideoModel.getCacheData().count == 0){
|
|
|
+ let cacheData = MVHotVideoModel.getCacheData()
|
|
|
+ if(cacheData.count == 0 && self?.mAllVideos.count ?? 0 == 0){
|
|
|
self?.showNetworkError(isHidden: false)
|
|
|
}else{
|
|
|
//没有网时查看有无缓存
|
|
|
- let cacheData = MVHotVideoModel.getCacheData()
|
|
|
if(cacheData.count > 0){
|
|
|
BFLog(message: "有缓存数据 ")
|
|
|
self?.refreshData(hotVideos: cacheData)
|