三国卡牌客户端基础资源仓库
yyl
2 天以前 a4bd6acc25923728e011f0bd853771ed2c022b02
Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_client
4个文件已修改
2个文件已添加
98 ■■■■ 已修改文件
Assets/Editor/Keystore/xmplaygame2.keystore 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Keystore/xmplaygame2.keystore.meta 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/VersionConfigs/Versions.txt 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/HttpRequest/HttpRequest.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Launch.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Manager/LocalResManager.cs 76 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Keystore/xmplaygame2.keystore
Binary files differ
Assets/Editor/Keystore/xmplaygame2.keystore.meta
New file
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b21805966822b254285d23b47d838722
DefaultImporter:
  externalObjects: {}
  userData:
  assetBundleName:
  assetBundleVariant:
Assets/Editor/VersionConfigs/Versions.txt
@@ -8,4 +8,5 @@
101    txws    txws    1    1.1.7    2026    1    xssg    2    1    天下无双HD    com.bl.aezhg.quick    xmplaygame    xmpg260325    xmpg_alias    xmpg260325        0    0    (-32,144)            0        txws
111    txws    txws    1    1.1.7    2026    11    xssg    2    1    天下无双HD    com.bl.aezhg.quick    xmplaygame    xmpg260325    xmpg_alias    xmpg260325        0    0    (-32,144)            0        txws
21    ryzj    ryzj    1    2.2.1    2026    1    xssg    2    1    荣耀战将    com.ryzj.bhwf    xmplaygame    xmpg260325    xmpg_alias    xmpg260325        0    0    (-32,144)            0        ryzj
31    sghy    sghy    1    2.2.1    2026    1    xssg    2    1    艾尔指挥官    com.szqdgames.android.arzhg    xmplaygame    xmpg260325    xmpg_alias    xmpg260325        0    0    (-32,144)            0        sghy
31    sghy    sghy    1    2.5.1    2026    1    xssg    0    1    艾尔指挥官    com.szqdgames.android.arzhg    xmplaygame2    xmpg260528    xmpg2_alias    xmpg260528        0    0    (-32,144)            0        sghy
32    sghy    sghy    1    2.5.1    2026    1    xssg    0    1    艾尔指挥官    com.szqdgames.android.arzhg    xmplaygame    xmpg260325    xmpg_alias    xmpg260325        0    0    (-32,144)            0        sghy
Assets/Launch/HttpRequest/HttpRequest.cs
@@ -39,7 +39,7 @@
        return await HttpBehaviour.CreateAsync(_url, "GET", "", _contentType, _retry, _result);
    }
    //2024-09-26 HttpWebRequest Get CDN资源在某些节日可能无法访问 包含keepalive的设定等不同情况 改用UnityWebRequest
    //2024-09-26 HttpWebRequest Get CDN资源在某些节点可能无法访问 包含keepalive的设定等不同情况 改用UnityWebRequest
    //获取CDN资源不建议使用HttpWebRequest
    public async UniTask<(bool ok, string message)> UnityWebRequestGet(string _url, int timeout = 5, Action<bool, string> _result = null)
    {
Assets/Launch/Launch.cs
@@ -85,6 +85,12 @@
    async void Start()
    {
        Debug.Log("Launch Start");
#if UNITY_WEBGL
            await VersionConfigEx.Get();
#endif
        LocalResManager.Instance.SetVersionUrl();
        LocalResManager.Instance.SetEventReportUrl();
        LocalResManager.Instance.RecordLauchEvent(1);
        InitPlugins();
@@ -170,9 +176,7 @@
            Debug.Log($"[Launch] cdnUrl={remoteCdnBaseUrl+ LocalResManager.fixPath}, PlayMode={playMode}");
            await YooAssetInitializer.Instance.InitializeAsync(playMode, remoteServices, remoteCdnBaseUrl + LocalResManager.fixPath);
#if UNITY_WEBGL
            await VersionConfigEx.Get();
#endif
            if (YooAssetInitializer.Instance.State == YooAssetInitializer.InitState.InitFailed)
            {
Assets/Launch/Manager/LocalResManager.cs
@@ -64,15 +64,7 @@
    public static int downLoadCount = 0;
    public static readonly string[] VERSION_URL = new string[]
    {
#if TEST_URL
        "http://gamecenter.secondworld.net.cn:11000/center/appversion_new.php/?",
#else
        "http://xssgcenter.secondworld.net.cn:11000/center/appversion_new.php/?",
#endif
        "http://106.55.151.92:11000/center/appversion_new.php/?",
    };
    public static string[] VERSION_URL;
    public int debugBranch { get; private set; }
@@ -134,6 +126,44 @@
        }
    }
    //根据不同 平台设置不同的版本url
    public void SetVersionUrl()
    {
        var appID = VersionConfigEx.Get().appId;
        switch (appID)
        {
            case "test":
            case "xssg":
            case "ryzj":
                VERSION_URL = new string[]
                {
                    "http://xssgcenter.secondworld.net.cn:11000/center/appversion_new.php/?",
                    "http://106.55.151.92:11000/center/appversion_new.php/?",
                };
                break;
            case "sghy":
                VERSION_URL = new string[]
                {
                    "http://sghycenter.funimpactgames.com:11000/center/appversion_new.php/?",
                    "http://47.250.213.171:11000/center/appversion_new.php/?",
                };
                break;
            default:
                VERSION_URL = new string[]
                {
                    "http://xssgcenter.secondworld.net.cn:11000/center/appversion_new.php/?",
                    "http://106.55.151.92:11000/center/appversion_new.php/?",
                };
                break;
        }
#if TEST_URL
        VERSION_URL = new string[]
        {
            "http://gamecenter.secondworld.net.cn:11000/center/appversion_new.php/?",
        };
#endif
    }
    // 对齐 YooAssetService.ExecuteWithRetryAsync:指数退避重试(500→1000→2000ms)
    private const int YOO_MAX_RETRY = 3;
@@ -371,6 +401,7 @@
        urlIndex++;
        versionUrl = url;
        Debug.Log("http地址:versionUrl  " + url);
        HttpRequest.Instance.RequestHttpGet(url, HttpRequest.defaultHttpContentType, 1, OnVersionCheckResult);
    }
#endif
@@ -816,12 +847,29 @@
    #region 事件汇报
#if TEST_URL
    const string url = "http://gamecenter.secondworld.net.cn:11000/center/eventreport.php?";
#else
    const string url = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?";
#endif
    public string url;
    //根据不同 平台设置不同的版本url
    public void SetEventReportUrl()
    {
        var appID = VersionConfigEx.Get().appId;
        switch (appID)
        {
            case "test":
            case "xssg":
            case "ryzj":
                url = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?";
                break;
            case "sghy":
                url = "http://sghycenter.funimpactgames.com:11000/center/eventreport.php?";
                break;
            default:
                url = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?";
                break;
        }
    }
    public void RecordLauchEvent(int _step)
    {