From 646bb242d75bd1a1d44db9d7ba5fcff50f777d7d Mon Sep 17 00:00:00 2001 From: Weller <1812208341@qq.com> Date: Mon, 16 Nov 2020 12:00:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dios=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=EF=BC=8C=E8=AE=BE=E5=A4=87=E5=90=8D=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E5=AF=BC=E8=87=B4=E8=AF=B7=E7=A4=BA=E9=94=99=E8=AF=AF?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/util/net_util.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/util/net_util.dart b/lib/util/net_util.dart index dd4220e..3e75ccb 100644 --- a/lib/util/net_util.dart +++ b/lib/util/net_util.dart @@ -13,6 +13,7 @@ import 'package:package_info/package_info.dart'; import 'package:zhiying_comm/util/empty_util.dart'; import 'package:zhiying_comm/zhiying_comm.dart'; +import 'encode_util.dart'; import 'global_config.dart'; import 'shared_prefe_util.dart'; import 'time_util.dart'; @@ -285,13 +286,14 @@ class NetUtil { // 设备系统版本 params["os_version"] = iosInfo?.systemVersion?.toString(); // 设备型号 如:iPhone 11pro - params['device_model'] = iosInfo?.name?.toString(); + + params['device_model'] = + EncodeUtil.encodeBase64(iosInfo?.name?.toString() ?? ''); // 设备ID params['device_id'] = iosInfo?.identifierForVendor?.toString(); // idfa params['idfa'] = iosInfo?.identifierForVendor?.toString(); - } else if (Platform.isAndroid) { AndroidDeviceInfo androidInfo = await DeviceInfoPlugin().androidInfo; // 设备