Merge branch 'canary_release' into develop_liyi
This commit is contained in:
commit
faa5deec84
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -1262,16 +1262,13 @@ class _LockDetailPageState extends State<LockDetailPage>
|
||||
SizedBox(
|
||||
width: 42.w,
|
||||
height: 42.h,
|
||||
child: FlavorsImg(
|
||||
black: true,
|
||||
child: Image.asset(iconUrl,
|
||||
width: 42.w,
|
||||
height: 42.w,
|
||||
color: bottomBtnisEable
|
||||
? AppColors.mainColor
|
||||
: AppColors.lockDetailBottomBtnUneable,
|
||||
fit: BoxFit.fitWidth),
|
||||
),
|
||||
child: Image.asset(iconUrl,
|
||||
width: 42.w,
|
||||
height: 42.w,
|
||||
color: bottomBtnisEable
|
||||
? AppColors.mainColor
|
||||
: AppColors.lockDetailBottomBtnUneable,
|
||||
fit: BoxFit.fitWidth),
|
||||
),
|
||||
SizedBox(height: 5.h),
|
||||
Expanded(
|
||||
@ -1295,16 +1292,13 @@ class _LockDetailPageState extends State<LockDetailPage>
|
||||
SizedBox(
|
||||
width: 42.w,
|
||||
height: 42.w,
|
||||
child: FlavorsImg(
|
||||
black: true,
|
||||
child: Image.asset(iconUrl,
|
||||
width: 42.w,
|
||||
height: 42.w,
|
||||
color: bottomBtnisEable
|
||||
? AppColors.mainColor
|
||||
: AppColors.lockDetailBottomBtnUneable,
|
||||
fit: BoxFit.fitWidth),
|
||||
),
|
||||
child: Image.asset(iconUrl,
|
||||
width: 42.w,
|
||||
height: 42.w,
|
||||
color: bottomBtnisEable
|
||||
? AppColors.mainColor
|
||||
: AppColors.lockDetailBottomBtnUneable,
|
||||
fit: BoxFit.fitWidth),
|
||||
),
|
||||
SizedBox(height: 15.h),
|
||||
Text(
|
||||
|
||||
@ -362,7 +362,8 @@ class _LockSetPageState extends State<LockSetPage>
|
||||
//todo: 双重认证、双锁联动国际化、API接口
|
||||
//双重认证
|
||||
Obx(() => Visibility(
|
||||
visible: state.lockFeature.value.doubleAuthentication == 1,
|
||||
//state.lockFeature.value.doubleAuthentication == 1,
|
||||
visible: false,
|
||||
child: CommonItem(
|
||||
leftTitel: '双重认证'.tr,
|
||||
rightTitle: '',
|
||||
|
||||
@ -4,7 +4,7 @@ import 'flavors.dart';
|
||||
import 'main.dart' as runner;
|
||||
|
||||
Future<void> main() async {
|
||||
F.appFlavor = Flavor.sky;
|
||||
F.appFlavor = Flavor.xhj;
|
||||
// AppLog.log('local调用了main函数');
|
||||
await runner.main();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user