From 051738261246e9e9c0efe46debcbbe4f54e9d3de Mon Sep 17 00:00:00 2001 From: CaiYanPeng Date: Thu, 20 May 2021 20:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Apis/ApiBase.cs | 2 +- Assets/Scripts/App.cs | 2 +- Assets/Scripts/Scenes/LoginController.cs | 9 +-------- .../Scripts/UI/Prefab/Login/QuickLoginUser.cs | 9 +-------- Assets/Scripts/UI/Prefab/MapList/MapItem.cs | 2 ++ .../Scripts/UI/Prefab/Panel/BigMapController.cs | 2 +- .../UI/Prefab/Panel/EditUserController.cs | 9 +-------- .../Scripts/UI/Prefab/Panel/HomeController.cs | 11 ++--------- .../UI/Prefab/Panel/MapListController.cs | 2 +- .../UI/Prefab/Panel/UserInfoController.cs | 11 ++--------- Assets/Scripts/Utils/Utils.cs | 11 +++++++++++ Packages/packages-lock.json | 17 ++++++++--------- 12 files changed, 32 insertions(+), 55 deletions(-) diff --git a/Assets/Scripts/Apis/ApiBase.cs b/Assets/Scripts/Apis/ApiBase.cs index b5b8851d..8ddd586e 100644 --- a/Assets/Scripts/Apis/ApiBase.cs +++ b/Assets/Scripts/Apis/ApiBase.cs @@ -37,7 +37,7 @@ namespace Assets.Scripts.Apis httpClientHandler = new HttpClientHandler(); httpClientHandler.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate; - httpClientHandler.Proxy = WebRequest.DefaultWebProxy; + httpClientHandler.Proxy = WebRequest.GetSystemWebProxy(); httpClientHandler.CookieContainer = _cookieCollection; httpClientHandler.UseCookies = true; //httpClientHandler.CookieContainer.Add(new Uri(ConfigHelper.Host), new Cookie("PowerFun.AUTH", "E1F130A03C0C2F01DF465A17AAA4740E9C44FC5F7C5077AF5A09B5ED29F0CF4FABE44329111C0BDBC6D97A28E7C7C188250265B37D2E6A849D7F0CAC606490648F17DC7FB9C8778BE7217991EBB6304BD543CFEE55084E54CCD634B49F26A751","/")); diff --git a/Assets/Scripts/App.cs b/Assets/Scripts/App.cs index 41ea94f0..217b6e3a 100644 --- a/Assets/Scripts/App.cs +++ b/Assets/Scripts/App.cs @@ -54,7 +54,7 @@ public static class App // Host = "http://pf.juze.pro/"; // UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21000); // TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21001); - Host = "https://wx.powerfun.com.cn"; + Host = "https://wx.powerfun.com.cn/"; UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11000); TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11001); #endif diff --git a/Assets/Scripts/Scenes/LoginController.cs b/Assets/Scripts/Scenes/LoginController.cs index e709781c..789c7f2a 100644 --- a/Assets/Scripts/Scenes/LoginController.cs +++ b/Assets/Scripts/Scenes/LoginController.cs @@ -778,15 +778,8 @@ public class LoginController : MonoBehaviour } void RefreshWx3(UserResultModel data,int type) { - if (string.IsNullOrEmpty(data.WxHeadImg)) - { - wxLogin3.Find("Avatar").GetComponent().texture = Resources.Load("Images/icon-1024"); - } - else - { - Utils.DisplayImage(wxLogin3.Find("Avatar").GetComponent(), + Utils.DisplayHead(wxLogin3.Find("Avatar").GetComponent(), data.WxHeadImg); - } wxLogin3.Find("Wx").gameObject.SetActive(type == 1); wxLogin3.Find("NickName").GetComponent().text = data.Nickname; userResult = data; diff --git a/Assets/Scripts/UI/Prefab/Login/QuickLoginUser.cs b/Assets/Scripts/UI/Prefab/Login/QuickLoginUser.cs index 235b3f90..9143459e 100644 --- a/Assets/Scripts/UI/Prefab/Login/QuickLoginUser.cs +++ b/Assets/Scripts/UI/Prefab/Login/QuickLoginUser.cs @@ -29,14 +29,7 @@ public class QuickLoginUser : MonoBehaviour }); //transform.GetComponent