From 2dd1f47082d300e22bbe42b1d5e7d65357cba0f2 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 15 八月 2018 11:01:54 +0800
Subject: [PATCH] 2466  【前端】分包优化

---
 System/MainInterfacePanel/TipPanel.cs |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/System/MainInterfacePanel/TipPanel.cs b/System/MainInterfacePanel/TipPanel.cs
index f14fc3b..f911f6d 100644
--- a/System/MainInterfacePanel/TipPanel.cs
+++ b/System/MainInterfacePanel/TipPanel.cs
@@ -89,7 +89,14 @@
                 {
                     if (InGameDownLoad.Instance.CheckDominantDownLoad())
                     {
-                        InGameDownLoad.Instance.TryDownLoad(true);
+                        if (Application.internetReachability == NetworkReachability.ReachableViaLocalAreaNetwork)
+                        {
+                            InGameDownLoad.Instance.TryDownLoad(InGameDownLoad.Dominant.Half);
+                        }
+                        else
+                        {
+                            InGameDownLoad.Instance.TryDownLoad(InGameDownLoad.Dominant.Whole);
+                        }
                     }
                 }
 

--
Gitblit v1.8.0