From 7663d2a2fe0dd97e1933354553827d29d66f3b45 Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Fri, 04 Dec 2020 19:49:54 +0800 Subject: [PATCH] 电脑版获取设备ID --- Assets/Scripts/UI/FinalPanel/FinalHttp.cs | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/Assets/Scripts/UI/FinalPanel/FinalHttp.cs b/Assets/Scripts/UI/FinalPanel/FinalHttp.cs index 9ab3444..3492834 100644 --- a/Assets/Scripts/UI/FinalPanel/FinalHttp.cs +++ b/Assets/Scripts/UI/FinalPanel/FinalHttp.cs @@ -25,6 +25,12 @@ GameConfig.Imei = TDAA_SDKManager.Ins.GetDeviceId();//使用设备ID } + else if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer) + { + //为了方便测试 + GameConfig.Imei = PlayerPrefs.GetString("GemBattlePlayerNickName"); + Debug.Log("这里是电脑版,直接设置Imei为昵称" + GameConfig.Imei); + } Debug.Log("设置imei0:" + GameConfig.Imei); } -- Gitblit v1.9.1