少年修仙传客户端代码仓库
client_Hale
2019-01-15 ded3c940e06fcb012bd60a5eb3db2e1aeb17146d
382 高版本编译android对拒绝权限的硬件信息获取出错保护
1个文件已修改
9 ■■■■ 已修改文件
Core/SDK/SDKUtility.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/SDK/SDKUtility.cs
@@ -387,7 +387,14 @@
                Device.userAgent = _json["userAgent"].ToString();
#if UNITY_ANDROID
                Device.macAddress = _json["mac"].ToString();
                Device.imei = _json["imei"].ToString();
                if (_json["imei"] != null)
                {
                    Device.imei = _json["imei"].ToString();
                }
                else
                {
                    Device.imei = Device.uniqueID;
                }
                Device.totalMemory = (int)_json["memoryTotal"];
#endif
                if (OnDeviceInfoChanged != null)