|
|
@@ -446,7 +446,11 @@ class NetUtil { |
|
|
|
/// 获取Android imei |
|
|
|
static Future<String> getImei() async { |
|
|
|
try { |
|
|
|
return await FlutterAlibc.getUdid(); |
|
|
|
// 用户同意隐私协议之后才能读取 |
|
|
|
String isShowPolicy = await SharedPreferencesUtil.getStringValue(GlobalConfig.isShowPolicy); |
|
|
|
if (!EmptyUtil.isEmpty(isShowPolicy) && '1' == isShowPolicy) { |
|
|
|
return await FlutterAlibc.getUdid(); |
|
|
|
} |
|
|
|
} catch (e, s) { |
|
|
|
Logger.error(e, s); |
|
|
|
} |
|
|
|