simpleAssetDownloadsComplete method
单个asset下载完成
Implementation
@override
void simpleAssetDownloadsComplete(DownloadServiceItem item) {
for (var file in item.filePath) {
if (file.isEmpty) {
return;
}
List<String> splits = file.split('/');
String fileName = splits.last;
Map map = {};
map['zipUrl'] = item.zipUrl;
map['h5Path'] = item.h5Path;
map['filePath'] = file;
_fileCache[fileName] = map;
}
localServerClientConfig.changeAssetsFromZipUrl(item);
}