修改bug

This commit is contained in:
Caiyanpeng committed 2021-05-20 20:00:33 +08:00
1 parent 2d36d5df39
commit 0517382612
12 files changed
+32 -55

No files matched your search

+1 -8
View File
@@ -778,15 +778,8 @@ public class LoginController : MonoBehaviour
}
void RefreshWx3(UserResultModel data,int type)
{
if (string.IsNullOrEmpty(data.WxHeadImg))
{
wxLogin3.Find("Avatar").GetComponent<RawImage>().texture = Resources.Load<Texture>("Images/icon-1024");
}
else
{
Utils.DisplayImage(wxLogin3.Find("Avatar").GetComponent<RawImage>(),
Utils.DisplayHead(wxLogin3.Find("Avatar").GetComponent<RawImage>(),
data.WxHeadImg);
}
wxLogin3.Find("Wx").gameObject.SetActive(type == 1);
wxLogin3.Find("NickName").GetComponent<Text>().text = data.Nickname;
userResult = data;