|
@@ -38,8 +38,10 @@ class MVHomeViewModel: NSObject {
|
|
var hotVideos:Array = Array<MVHotVideoModel>.init()
|
|
var hotVideos:Array = Array<MVHotVideoModel>.init()
|
|
if !(response is NSNull), response != nil {
|
|
if !(response is NSNull), response != nil {
|
|
let tempArr = response as! [[String: Any]]
|
|
let tempArr = response as! [[String: Any]]
|
|
|
|
+ DispatchQueue.global().async {
|
|
|
|
+ MVHotVideoModel.saveCacheData(data: tempArr)
|
|
|
|
+ }
|
|
|
|
|
|
- MVHotVideoModel.saveCacheData(data: tempArr)
|
|
|
|
|
|
|
|
for item in tempArr {
|
|
for item in tempArr {
|
|
|
|
|