21Note字段更新(字段预测)
This commit is contained in:
@@ -3,6 +3,7 @@ class DeviceMatching {
|
|||||||
/// 根据机型返回设计容量(mAh)
|
/// 根据机型返回设计容量(mAh)
|
||||||
static int getDesignCapacity(String model) {
|
static int getDesignCapacity(String model) {
|
||||||
if (model.contains('21 Pro')) return 5050;
|
if (model.contains('21 Pro')) return 5050;
|
||||||
|
if (model.contains('21 Note')) return 5050;
|
||||||
if (model.contains('21')) return 4800;
|
if (model.contains('21')) return 4800;
|
||||||
if (model.contains('20 Pro')) return 5000;
|
if (model.contains('20 Pro')) return 5000;
|
||||||
if (model.contains('20 Inf')) return 4800;
|
if (model.contains('20 Inf')) return 4800;
|
||||||
@@ -29,6 +30,7 @@ class DeviceMatching {
|
|||||||
/// 根据机型返回显示名称
|
/// 根据机型返回显示名称
|
||||||
static String getModelName(String model) {
|
static String getModelName(String model) {
|
||||||
if (model.contains('21 Pro')) return '魅族21 Pro';
|
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('21')) return '魅族21';
|
||||||
if (model.contains('20 Pro')) return '魅族20 Pro';
|
if (model.contains('20 Pro')) return '魅族20 Pro';
|
||||||
if (model.contains('20 Inf')) return '魅族20 Infinity';
|
if (model.contains('20 Inf')) return '魅族20 Infinity';
|
||||||
|
|||||||
Reference in New Issue
Block a user