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