Commit df0c7c61 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent d7507051
...@@ -210,15 +210,7 @@ class DeviceInfo private constructor() { ...@@ -210,15 +210,7 @@ class DeviceInfo private constructor() {
(MintsApplication.getContext() (MintsApplication.getContext()
.getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager).deviceId .getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager).deviceId
} catch (e: Exception) { } catch (e: Exception) {
try { imei = ""
imei = Settings.Secure.getString(
MintsApplication.getContext().contentResolver,
Settings.Secure.ANDROID_ID
)
} catch (e: Exception) {
imei = ""
e.printStackTrace()
}
e.printStackTrace() e.printStackTrace()
} }
return imei return imei
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment