yyl
2026-05-11 51b0f6ed9f4e1d3bb6f8144470b46908c7699a96
Main/ResModule/PlatformCacheHelper.cs
@@ -57,18 +57,19 @@
        /// </summary>
        public static int GetCacheSizeLimitMB()
        {
            var platform = PlatformFactory.GetCurrent();
            switch (platform.GetPlatformType())
            {
                case PlatformType.WeChat:
                    return 200; // 微信小游戏用户数据上限约 200MB
                case PlatformType.Douyin:
                    return 200; // 抖音小游戏类似限制
                case PlatformType.Vivo:
                    return 100; // Vivo 限制较小
                default:
                    return 1024; // Standalone 无严格限制
            }
            return 1024;
            // var platform = PlatformFactory.GetCurrent();
            // switch (platform.GetPlatformType())
            // {
            //     case PlatformType.WeChat:
            //         return 200; // 微信小游戏用户数据上限约 200MB
            //     case PlatformType.Douyin:
            //         return 200; // 抖音小游戏类似限制
            //     case PlatformType.Vivo:
            //         return 100; // Vivo 限制较小
            //     default:
            //         return 1024; // Standalone 无严格限制
            // }
        }
        /// <summary>