wangguan
2020-12-04 d41516e30a9f1137be32d1477220f6ab262f6ed5
电脑版获取设备ID错误
2 files modified
17 ■■■■ changed files
Assets/Scripts/UI/FinalPanel/FinalHttp.cs 5 ●●●●● patch | view | raw | blame | history
Assets/Scripts/UI/FinalPanel/FinalPanel.cs 12 ●●●●● patch | view | raw | blame | history
Assets/Scripts/UI/FinalPanel/FinalHttp.cs
@@ -25,12 +25,7 @@
            GameConfig.Imei = TDAA_SDKManager.Ins.GetDeviceId();//使用设备ID
        }
        else if (Application.platform == RuntimePlatform.WindowsEditor)
        {
            //GameConfig.Imei = "MyTestGemBattle1233333";
            GameConfig.Imei = "MyTestRank2";
        }
        Debug.Log("设置imei0:" + GameConfig.Imei);
    }
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;
    }