换皮糖果短剧
This commit is contained in:
@@ -6,7 +6,7 @@ import 'package:device_identity/device_identity.dart';
|
||||
import 'package:device_info_plus/device_info_plus.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||
import 'package:hgdj/extension/extensions.dart';
|
||||
import 'package:tgdj/extension/extensions.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
@@ -22,7 +22,7 @@ class DeviceInfoService {
|
||||
/// iOS Keychain 存 DevID。同一个 bundle id 卸载重装后 Keychain 项仍然存在(iOS
|
||||
/// 沙盒清理不动 Keychain) → 同账号身份。**没声明 Keychain Sharing access group,
|
||||
/// 不同 bundle id 马甲互相读不到对方的 DevID(各自独立),这是产品取舍。**
|
||||
static const _kKeychainDevIdKey = 'hgdj_device_id_v1';
|
||||
static const _kKeychainDevIdKey = 'tgdj_device_id_v1';
|
||||
static const _secureStorage = FlutterSecureStorage(
|
||||
iOptions: IOSOptions(
|
||||
accessibility: KeychainAccessibility.first_unlock,
|
||||
@@ -263,8 +263,8 @@ class DeviceInfoService {
|
||||
} catch (_) {}
|
||||
}
|
||||
if (_isInvalidId(raw)) raw = const Uuid().v4();
|
||||
// 业务规则:hgdj_ 前缀,去空格,限制 50 字符(日志系统约束)
|
||||
return 'hgdj_${raw.replaceAll(' ', '')}'.limit(50);
|
||||
// 业务规则:tgdj_ 前缀,去空格,限制 50 字符(日志系统约束)
|
||||
return 'tgdj_${raw.replaceAll(' ', '')}'.limit(50);
|
||||
}
|
||||
|
||||
/// 脏值检测:空 / 太短 / 全 0 / 已知脏值
|
||||
|
||||
Reference in New Issue
Block a user