|
@@ -1,7 +1,8 @@
|
|
|
import 'dart:io';
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
-import 'package:electronic_assistant/utils/android_device_info.dart';
|
|
|
|
|
|
|
+import 'package:electronic_assistant/device/atmob_platform_info.dart';
|
|
|
import 'package:electronic_assistant/utils/app_info_util.dart';
|
|
import 'package:electronic_assistant/utils/app_info_util.dart';
|
|
|
|
|
+import 'package:electronic_assistant/device/device_info_util.dart';
|
|
|
import 'package:electronic_assistant/utils/mmkv_util.dart';
|
|
import 'package:electronic_assistant/utils/mmkv_util.dart';
|
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
@@ -48,6 +49,8 @@ class BaseRequest {
|
|
|
String? simImei0;
|
|
String? simImei0;
|
|
|
@JsonKey(name: "simImei1")
|
|
@JsonKey(name: "simImei1")
|
|
|
String? simImei1;
|
|
String? simImei1;
|
|
|
|
|
+ @JsonKey(name: "mac")
|
|
|
|
|
+ String? mac;
|
|
|
|
|
|
|
|
/// iOS特有
|
|
/// iOS特有
|
|
|
@JsonKey(name: "idfa")
|
|
@JsonKey(name: "idfa")
|
|
@@ -57,13 +60,11 @@ class BaseRequest {
|
|
|
|
|
|
|
|
/// 公共设备信息
|
|
/// 公共设备信息
|
|
|
@JsonKey(name: "machineId")
|
|
@JsonKey(name: "machineId")
|
|
|
- String? machineId;
|
|
|
|
|
|
|
+ String? machineId; //给web使用
|
|
|
@JsonKey(name: "brand")
|
|
@JsonKey(name: "brand")
|
|
|
String? brand;
|
|
String? brand;
|
|
|
@JsonKey(name: "model")
|
|
@JsonKey(name: "model")
|
|
|
String? model;
|
|
String? model;
|
|
|
- @JsonKey(name: "mac")
|
|
|
|
|
- String? mac;
|
|
|
|
|
@JsonKey(name: "wifiName")
|
|
@JsonKey(name: "wifiName")
|
|
|
String? wifiName;
|
|
String? wifiName;
|
|
|
|
|
|
|
@@ -116,8 +117,21 @@ class BaseRequest {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void initDeviceInfo() {
|
|
void initDeviceInfo() {
|
|
|
- if (Platform.isAndroid) {
|
|
|
|
|
- androidId = androidDeviceInfo.androidId;
|
|
|
|
|
- } else if (Platform.isIOS) {}
|
|
|
|
|
|
|
+ oaid = atmobPlatformInfo.oaid;
|
|
|
|
|
+ aaid = atmobPlatformInfo.aaid;
|
|
|
|
|
+ androidId = atmobPlatformInfo.androidId;
|
|
|
|
|
+ imei = atmobPlatformInfo.imei;
|
|
|
|
|
+ simImei0 = atmobPlatformInfo.simImei0;
|
|
|
|
|
+ simImei1 = atmobPlatformInfo.simImei1;
|
|
|
|
|
+ mac = atmobPlatformInfo.mac;
|
|
|
|
|
+ idfa = atmobPlatformInfo.idfa;
|
|
|
|
|
+ idfv = atmobPlatformInfo.idfv;
|
|
|
|
|
+ machineId = atmobPlatformInfo.machineId;
|
|
|
|
|
+ brand = atmobPlatformInfo.brand;
|
|
|
|
|
+ model = atmobPlatformInfo.model;
|
|
|
|
|
+ wifiName = atmobPlatformInfo.wifiName;
|
|
|
|
|
+ region = atmobPlatformInfo.region;
|
|
|
|
|
+ locLng = atmobPlatformInfo.locLng;
|
|
|
|
|
+ locLat = atmobPlatformInfo.locLat;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|