Skip to content

Commit 5cdbf61

Browse files
committed
fix(资源更新): 使用GetPackageName方法获取包名
修复调用AssetFoundUpdateFilesEventArgs.Create时传递包名参数的问题,将直接访问PackageName属性改为调用GetPackageName()方法,以确保正确获取包名信息。
1 parent edd24e2 commit 5cdbf61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Assets/Scripts/Framework/Procedure/PatchUpdater/ProcedureCreateDownloader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void CreateDownloader(IFsm<IProcedureManager> procedureOwner)
3939
// 发现新更新文件后,挂起流程系统
4040
int totalDownloadCount = downloader.TotalDownloadCount;
4141
long totalDownloadBytes = downloader.TotalDownloadBytes;
42-
GameApp.Event.Fire(this, AssetFoundUpdateFilesEventArgs.Create(downloader.PackageName, totalDownloadCount, totalDownloadBytes));
42+
GameApp.Event.Fire(this, AssetFoundUpdateFilesEventArgs.Create(downloader.GetPackageName(), totalDownloadCount, totalDownloadBytes));
4343
ChangeState<ProcedureDownloadWebFiles>(procedureOwner);
4444
}
4545
}

0 commit comments

Comments
 (0)