Commit df0c7c61 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent d7507051
......@@ -210,15 +210,7 @@ class DeviceInfo private constructor() {
(MintsApplication.getContext()
.getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager).deviceId
} catch (e: Exception) {
try {
imei = Settings.Secure.getString(
MintsApplication.getContext().contentResolver,
Settings.Secure.ANDROID_ID
)
} catch (e: Exception) {
imei = ""
e.printStackTrace()
}
imei = ""
e.printStackTrace()
}
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