Browse Source

Merge branch 'hy_dny' of ssh://192.168.0.8:29418/xianjing into hy_dny_ios

gdl_123 3 months ago
parent
commit
231fc38a23

+ 4 - 4
Assets/Src/Core/DownLoad/AssetDownloader.cs

@@ -79,12 +79,12 @@ public class AssetDownloader : SingletonMono<AssetDownloader>
 
 
 
 
 
 
-    private IEnumerator DownloadFile(string url, Action<UnityWebRequest> callback)
+    private IEnumerator DownloadFile(string url, Action<UnityWebRequest> callback, int _timeout = 5)
     {
     {
         Debug.Log($"url = {url}");
         Debug.Log($"url = {url}");
         UnityWebRequest webRqst = UnityWebRequest.Get(url);
         UnityWebRequest webRqst = UnityWebRequest.Get(url);
         float timeOut = Time.time;
         float timeOut = Time.time;
-        webRqst.timeout = 20;
+        webRqst.timeout = _timeout;
         UnityWebRequestAsyncOperation asyncOperation = webRqst.SendWebRequest();
         UnityWebRequestAsyncOperation asyncOperation = webRqst.SendWebRequest();
         float progress = 0;
         float progress = 0;
        
        
@@ -291,9 +291,9 @@ public class AssetDownloader : SingletonMono<AssetDownloader>
     }
     }
 
 
 
 
-    public void DownLoadFileByCoroutine(string url, Action<UnityWebRequest> callback)
+    public void DownLoadFileByCoroutine(string url, Action<UnityWebRequest> callback,int timeout = 5)
     {
     {
-        StartCoroutine(DownloadFile(url, callback));
+        StartCoroutine(DownloadFile(url, callback,5));
     }
     }
 
 
     public void AssetLoadToLocalByCorutine(string url, string toPath, Action<byte[]> callback = null)
     public void AssetLoadToLocalByCorutine(string url, string toPath, Action<byte[]> callback = null)

+ 1 - 1
Assets/Src/Core/DownLoad/DownloadTask.cs

@@ -73,7 +73,7 @@ public class DownloadTask : MonoBehaviour
         {
         {
             ret = false;
             ret = false;
         }
         }
-        webRqst.timeout = 20;
+        webRqst.timeout = 5;
         return ret;
         return ret;
     }
     }
 
 

+ 3 - 3
Assets/Src/GameLogic/LaunchLoadMgr.cs

@@ -137,10 +137,10 @@ public class LaunchLoadMgr
 
 
         if (isOpenCheck)
         if (isOpenCheck)
         {
         {
-            string checkurl = $"{url}serverlist/serverstate?platform={param}";
+            string checkurl = $"{url}{param}";
             AssetDownloader.Instance.DownLoadFileByCoroutine(checkurl, webreq =>
             AssetDownloader.Instance.DownLoadFileByCoroutine(checkurl, webreq =>
              {
              {
-                 bool isShenHe = false;
+                 bool isShenHe = true;
                  if (webreq != null)
                  if (webreq != null)
                  {
                  {
                      string data = webreq.downloadHandler.text;
                      string data = webreq.downloadHandler.text;
@@ -157,7 +157,7 @@ public class LaunchLoadMgr
                  {
                  {
                      GameMgr.Instance.DoTaskByCorutine(CheckResUpdate);
                      GameMgr.Instance.DoTaskByCorutine(CheckResUpdate);
                  }
                  }
-             });
+             },2);
         }
         }
         else
         else
         {
         {

+ 21 - 16
README.md

@@ -4,22 +4,27 @@
 
 
 | 分支 | 说明 |
 | 分支 | 说明 |
 |:-------:|:-------:|
 |:-------:|:-------:|
- |   cn_0_1  | 国内 0.1 版
- | cn_merage
- | cn_zhuanFu | 国内专服
- | hy_en |海外英文(英美)
- | hy_iios_new | 海外ios(港澳台)
- | hy_ios | 海外ios(港澳台)(旧)
- | hy_ios_en |海外英文IOS(英美)
- | hy_new | 海外(港澳台)
- | hy_oldhp
- | hy_ru |海外俄语
- | hy_skin | 舍弃掉的
- | hy_test  | 海外测试(用于测试服,一般用于合并主分支的修改)(港澳台)
- | main  |主
- | new | 海外ios(港澳台)(旧)
- | skin_test
- | sskin  | 皮肤测试
+|   cn_0_1  | 国内 0.1 版
+| cn_merage | 合并
+| cn_zhuanFu | 国内专服
+| hy_en | 海外英文(英美)
+| hy_iios_new | 海外ios(港澳台)
+| hy_ios | 海外ios(港澳台)(旧)
+| hy_ios_en | 海外英文IOS(英美)
+| hy_new | 海外(港澳台)
+| hy_oldhp | 旧版hp
+| hy_ru | 海外俄语
+| hy_skin | 舍弃掉的
+| hy_test  | 海外测试(用于测试服,一般用于合并主分支的修改)(港澳台)
+| main  | 主
+| new | 海外ios(港澳台)(旧)
+| skin_test | 皮肤测试
+| sskin  | 皮肤测试
+
+> 各语言最新分支 
+> > 英文版: hy_dny </br>
+> > 繁体:hy_tw-en </br>
+> > 俄语:hy_ru </br>
 
 
 ## 目录结构说明
 ## 目录结构说明
 ### 常规目录
 ### 常规目录