三国卡牌客户端基础资源仓库
hch
2026-06-15 13af7217cc86b22f87f56fc984ae411a40ab81d8
Merge branch 'master' of http://mobile.secondworld.net.cn:10010/r/Project_SG_client
3个文件已修改
22 ■■■■ 已修改文件
Assets/Editor/YooAsset/YooAssetBuildTool.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Launch.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Resources/LoginBackground.jpg 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/YooAsset/YooAssetBuildTool.cs
@@ -41,8 +41,7 @@
    /// </summary>
    private const string HYBRIDCLR_DLLS_ASSETS_PATH = "Assets/HybridCLRDlls";
    private const string LaunchBackgroundFileName = "LoginBackground.jpg";
    private const string LaunchBackgroundVersionFileName = "bg_version.txt";
    private const string LaunchBackgroundVersionAliasFileName = "version.txt";
    private const string LaunchBackgroundVersionFileName = "version.txt";
    /// <summary>
    /// AOT 元数据 DLL 列表 —— 所有平台通用部分
@@ -953,9 +952,6 @@
            string targetVersionFile = System.IO.Path.Combine(targetDirectory, LaunchBackgroundVersionFileName);
            System.IO.File.WriteAllText(targetVersionFile, version);
            string targetVersionAliasFile = System.IO.Path.Combine(targetDirectory, LaunchBackgroundVersionAliasFileName);
            System.IO.File.WriteAllText(targetVersionAliasFile, version);
            Debug.Log($"[YooAssetBuildTool] 已写入启动背景资源: {targetBackground}, version={version}");
            return true;
Assets/Launch/Launch.cs
@@ -187,23 +187,13 @@
            using (var versionReq = UnityEngine.Networking.UnityWebRequest.Get(cdnUrl + "/version.txt?ts=" + cacheBust))
            {
                await versionReq.SendWebRequest().ToUniTask();
                if (versionReq.result == UnityEngine.Networking.UnityWebRequest.Result.Success)
                if (versionReq.result != UnityEngine.Networking.UnityWebRequest.Result.Success)
                {
                    newVersion = versionReq.downloadHandler.text.Trim();
                }
            }
            if (string.IsNullOrEmpty(newVersion))
            {
                using var legacyVersionReq = UnityEngine.Networking.UnityWebRequest.Get(cdnUrl + "/bg_version.txt?ts=" + cacheBust);
                await legacyVersionReq.SendWebRequest().ToUniTask();
                if (legacyVersionReq.result != UnityEngine.Networking.UnityWebRequest.Result.Success)
                {
                    Debug.LogError($"[Launch] Fetch version file failed: {legacyVersionReq.error}");
                    Debug.LogError($"[Launch] Fetch version file failed: {versionReq.error}");
                    return;
                }
                newVersion = legacyVersionReq.downloadHandler.text.Trim();
                newVersion = versionReq.downloadHandler.text.Trim();
            }
            if (string.IsNullOrEmpty(newVersion) || newVersion == LocalSave.GetString("bg_version"))
Assets/Resources/LoginBackground.jpg