fix:【开锁页-密码-修改自定义密码为已存在密码一直转圈无提示,之前正常】
This commit is contained in:
parent
0f9b63b05d
commit
1dd9da1bef
@ -1,11 +1,10 @@
|
||||
|
||||
import 'package:flutter_easyloading/flutter_easyloading.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../app_settings/app_settings.dart';
|
||||
import 'io_type.dart';
|
||||
|
||||
abstract class Reply{
|
||||
abstract class Reply {
|
||||
Reply.parseData(this.commandType, List<int> dataDetail);
|
||||
|
||||
CommandType? commandType;
|
||||
@ -13,10 +12,10 @@ abstract class Reply{
|
||||
//command key flag
|
||||
int status = 0;
|
||||
List<int> data = [];
|
||||
static String logTag= '锁 -> App,指令订阅类型 :';
|
||||
static String logTag = '锁 -> App,指令订阅类型 :';
|
||||
|
||||
void errorWithStstus(int status){
|
||||
switch(status){
|
||||
void errorWithStstus(int status) {
|
||||
switch (status) {
|
||||
case 0x00:
|
||||
// 成功
|
||||
AppLog.log('$logTag ${commandType?.typeName} 0x00 成功');
|
||||
@ -39,7 +38,7 @@ abstract class Reply{
|
||||
case 0x04:
|
||||
// 用户未登记
|
||||
AppLog.log('$logTag ${commandType!.typeName} 0x04 用户未登记');
|
||||
// showErrorMessage('用户未登记');
|
||||
showErrorMessage('用户未登记'.tr);
|
||||
break;
|
||||
case 0x05:
|
||||
// 参数错误
|
||||
@ -133,7 +132,7 @@ abstract class Reply{
|
||||
}
|
||||
}
|
||||
|
||||
void showErrorMessage(String message){
|
||||
void showErrorMessage(String message) {
|
||||
EasyLoading.showToast(message, duration: 2000.milliseconds);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user