有些时候热更时,一开始就卡住报错“”Unable to download file“”, 后来跟踪代码发现在DownLoad.cpp文件中的groupBatchDownload方法中出问题了, 这个不知道怎么解决,求官方帮忙。
跟踪代码发现直接进里了,没去下载
// Check unfinished files and notify errors, succeed files will be renamed from temporary file name to real name
for (auto it = _progDatas.begin(); it != _progDatas.end(); ++it) {
ProgressData *data = *it;
if (data->downloaded < data->totalToDownload || data->totalToDownload == 0)
{
this->notifyError(ErrorCode::NETWORK, “Unable to download file”, data->customId);
}
else
{
_fileUtils->renameFile(data->path, data->name + TEMP_EXT, data->name);
}
}