a,领锁,点击+号时,如果获取网络时间失败,不进入下一页,提示必须联网 b. 开锁时:有网络时间则同步,无网络则不同步时间 c. 同步时间功能:必须有网才同步时间,确定和通通锁不一致 2、修改登录、注册、修改密码选择跟当前ip不是用一个国家的时候,弹窗提示
60 lines
1.4 KiB
Dart
Executable File
60 lines
1.4 KiB
Dart
Executable File
|
|
class SendValidationCodeEntity {
|
|
SendValidationCodeEntity({
|
|
this.description,
|
|
this.errorCode,
|
|
this.content,
|
|
this.errorMsg,});
|
|
|
|
SendValidationCodeEntity.fromJson(dynamic json) {
|
|
description = json['description'];
|
|
errorCode = json['errorCode'];
|
|
content = json['content'] != null ? Data.fromJson(json['content']) : null;
|
|
errorMsg = json['errorMsg'];
|
|
}
|
|
String? description;
|
|
int? errorCode;
|
|
Data? content;
|
|
String? errorMsg;
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final map = <String, dynamic>{};
|
|
map['description'] = description;
|
|
map['errorCode'] = errorCode;
|
|
if (content != null) {
|
|
map['data'] = content!.toJson();
|
|
}
|
|
map['errorMsg'] = errorMsg;
|
|
return map;
|
|
}
|
|
|
|
}
|
|
|
|
class Data {
|
|
Data({
|
|
this.originalImageBase64,
|
|
this.jigsawImageBase64,
|
|
this.secretKey,
|
|
this.token});
|
|
|
|
Data.fromJson(dynamic json) {
|
|
originalImageBase64 = json['originalImageBase64'];
|
|
jigsawImageBase64 = json['jigsawImageBase64'];
|
|
secretKey = json['secretKey'];
|
|
token = json['token'];
|
|
}
|
|
int? originalImageBase64;
|
|
String? jigsawImageBase64;
|
|
String? secretKey;
|
|
String? token;
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final map = <String, dynamic>{};
|
|
map['originalImageBase64'] = originalImageBase64;
|
|
map['jigsawImageBase64'] = jigsawImageBase64;
|
|
map['secretKey'] = secretKey;
|
|
map['token'] = token;
|
|
return map;
|
|
}
|
|
|
|
} |