From d41516e30a9f1137be32d1477220f6ab262f6ed5 Mon Sep 17 00:00:00 2001
From: wangguan <wangguan@kt007.com>
Date: Fri, 04 Dec 2020 19:45:25 +0800
Subject: [PATCH] 电脑版获取设备ID错误

---
 Assets/Scripts/UI/FinalPanel/FinalPanel.cs |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Assets/Scripts/UI/FinalPanel/FinalPanel.cs b/Assets/Scripts/UI/FinalPanel/FinalPanel.cs
index d20c2f3..de3d99f 100644
--- a/Assets/Scripts/UI/FinalPanel/FinalPanel.cs
+++ b/Assets/Scripts/UI/FinalPanel/FinalPanel.cs
@@ -157,6 +157,14 @@
     {
         playerNickName = nickName;
         PlayerPrefs.SetString(playerPrefs_NickName, playerNickName);
+
+        if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer)
+        {
+            //为了方便测试
+            GameConfig.Imei = playerNickName;
+            Debug.Log("这里是电脑版,直接设置Imei为昵称" + playerNickName);
+        }
+
         StartHttp();
     }
 
@@ -341,8 +349,12 @@
             }
         }
 
+        // transform.Find("Image1").gameObject.SetActive(false);
+        // transform.Find("Image2").gameObject.SetActive(false);
+        // transform.Find("Image3").gameObject.SetActive(false);
         endPs?.Play();
 
+
         closeBtn.interactable = true;
     }
 

--
Gitblit v1.9.1