diff --git a/Assets/LuaFramework/Scripts/Utility/MEncyptUtil.cs b/Assets/LuaFramework/Scripts/Utility/MEncyptUtil.cs index d956877009..5526648cd6 100644 --- a/Assets/LuaFramework/Scripts/Utility/MEncyptUtil.cs +++ b/Assets/LuaFramework/Scripts/Utility/MEncyptUtil.cs @@ -59,7 +59,7 @@ namespace GameLogic { public static void EncyptAB(string path, string key) { // 闪屏先不加密了 - if (Path.GetFileName(path).Equals("splashpanel.unity3d")) + if (Path.GetFileName(path).Contains("splashpanel")) { return; } diff --git a/Assets/Scripts/Core/ResUpdate/Manager/ResourcesUpdateManager.cs b/Assets/Scripts/Core/ResUpdate/Manager/ResourcesUpdateManager.cs index dfacfed6f8..38874dc861 100644 --- a/Assets/Scripts/Core/ResUpdate/Manager/ResourcesUpdateManager.cs +++ b/Assets/Scripts/Core/ResUpdate/Manager/ResourcesUpdateManager.cs @@ -519,7 +519,7 @@ namespace ResUpdate /// List GetNewResourceFiles() { - AssetBundle bundle = MEncyptUtil.LoadAssetBundle(UpdateConfigs.PersistentDataPath + UpdateConfigs.FILES, "", 0); + AssetBundle bundle = MEncyptUtil.LoadAssetBundle(UpdateConfigs.PersistentDataPath + UpdateConfigs.FILES, AppConst.EncyptKey, 0); ResourceFiles files = bundle.LoadAsset("game"); List list = files.files; bundle.Unload(true); @@ -532,7 +532,7 @@ namespace ResUpdate /// List GetStreamResourceFiles() { - AssetBundle bundle = MEncyptUtil.LoadAssetBundle(UpdateConfigs.StreamPath + UpdateConfigs.FILES, "", 0); + AssetBundle bundle = MEncyptUtil.LoadAssetBundle(UpdateConfigs.StreamPath + UpdateConfigs.FILES, AppConst.EncyptKey, 0); if (bundle != null) { ResourceFiles files = bundle.LoadAsset("game");