fix(mobile-app): 修复deviceName只发送后端接受的字段

后端DeviceNameDto只接受model/platform/osVersion三个字段
移除brand/manufacturer/device/product/hardware/sdkInt/isPhysicalDevice

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-07 10:57:38 -08:00
parent 657b66c9e5
commit 1b4901ea68
1 changed files with 3 additions and 8 deletions

View File

@ -33,17 +33,12 @@ class DeviceHardwareInfo {
this.isPhysicalDevice,
});
/// API
/// : model, platform, osVersion
Map<String, dynamic> toJson() => {
if (brand != null) 'brand': brand,
if (manufacturer != null) 'manufacturer': manufacturer,
if (model != null) 'model': model,
if (device != null) 'device': device,
if (product != null) 'product': product,
if (hardware != null) 'hardware': hardware,
if (osVersion != null) 'osVersion': osVersion,
if (platform != null) 'platform': platform,
if (sdkInt != null) 'sdkInt': sdkInt,
if (isPhysicalDevice != null) 'isPhysicalDevice': isPhysicalDevice,
if (osVersion != null) 'osVersion': osVersion,
};
@override