所有设备ID获取方式统一为使用 KRDeviceInfoService().deviceId(基于 device_info_plus
库)。这确保了全局使用一致的设备标识
This commit is contained in:
@@ -6,7 +6,7 @@ import 'package:kaer_with_panels/app/localization/kr_language_utils.dart';
|
||||
import 'dart:io' show Platform;
|
||||
import 'dart:async';
|
||||
|
||||
import '../../../utils/kr_device_util.dart';
|
||||
import '../../../services/kr_device_info_service.dart';
|
||||
|
||||
/// Crisp 聊天控制器
|
||||
class KRCrispController extends GetxController {
|
||||
@@ -68,7 +68,7 @@ class KRCrispController extends GetxController {
|
||||
final userEmail = appData.kr_account.value ?? '';
|
||||
|
||||
// 获取设备 ID
|
||||
final deviceId = await KRDeviceUtil().kr_getDeviceId();
|
||||
final deviceId = KRDeviceInfoService().deviceId ?? 'unknown';
|
||||
final identifier = userEmail.isNotEmpty ? userEmail : deviceId;
|
||||
|
||||
// 根据当前语言设置对应的 Crisp locale
|
||||
|
||||
Reference in New Issue
Block a user