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:
parent
657b66c9e5
commit
1b4901ea68
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue