21note字段确认为乱码,撤回支持

This commit is contained in:
2026-07-20 22:49:16 +08:00
parent 41f3ea114b
commit c8866a740a
-2
View File
@@ -3,7 +3,6 @@ class DeviceMatching {
/// 根据机型返回设计容量(mAh)
static int getDesignCapacity(String model) {
if (model.contains('21 Pro')) return 5050;
if (model.contains('21 Note')) return 5050;
if (model.contains('21')) return 4800;
if (model.contains('20 Pro')) return 5000;
if (model.contains('20 Inf')) return 4800;
@@ -30,7 +29,6 @@ class DeviceMatching {
/// 根据机型返回显示名称
static String getModelName(String model) {
if (model.contains('21 Pro')) return '魅族21 Pro';
if (model.contains('21 Note')) return '魅族21 Note';
if (model.contains('21')) return '魅族21';
if (model.contains('20 Pro')) return '魅族20 Pro';
if (model.contains('20 Inf')) return '魅族20 Infinity';