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:flutter_easyloading/flutter_easyloading.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
|
||||||
import '../app_settings/app_settings.dart';
|
import '../app_settings/app_settings.dart';
|
||||||
import 'io_type.dart';
|
import 'io_type.dart';
|
||||||
|
|
||||||
abstract class Reply{
|
abstract class Reply {
|
||||||
Reply.parseData(this.commandType, List<int> dataDetail);
|
Reply.parseData(this.commandType, List<int> dataDetail);
|
||||||
|
|
||||||
CommandType? commandType;
|
CommandType? commandType;
|
||||||
@ -13,10 +12,10 @@ abstract class Reply{
|
|||||||
//command key flag
|
//command key flag
|
||||||
int status = 0;
|
int status = 0;
|
||||||
List<int> data = [];
|
List<int> data = [];
|
||||||
static String logTag= '锁 -> App,指令订阅类型 :';
|
static String logTag = '锁 -> App,指令订阅类型 :';
|
||||||
|
|
||||||
void errorWithStstus(int status){
|
void errorWithStstus(int status) {
|
||||||
switch(status){
|
switch (status) {
|
||||||
case 0x00:
|
case 0x00:
|
||||||
// 成功
|
// 成功
|
||||||
AppLog.log('$logTag ${commandType?.typeName} 0x00 成功');
|
AppLog.log('$logTag ${commandType?.typeName} 0x00 成功');
|
||||||
@ -39,7 +38,7 @@ abstract class Reply{
|
|||||||
case 0x04:
|
case 0x04:
|
||||||
// 用户未登记
|
// 用户未登记
|
||||||
AppLog.log('$logTag ${commandType!.typeName} 0x04 用户未登记');
|
AppLog.log('$logTag ${commandType!.typeName} 0x04 用户未登记');
|
||||||
// showErrorMessage('用户未登记');
|
showErrorMessage('用户未登记'.tr);
|
||||||
break;
|
break;
|
||||||
case 0x05:
|
case 0x05:
|
||||||
// 参数错误
|
// 参数错误
|
||||||
@ -133,7 +132,7 @@ abstract class Reply{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void showErrorMessage(String message){
|
void showErrorMessage(String message) {
|
||||||
EasyLoading.showToast(message, duration: 2000.milliseconds);
|
EasyLoading.showToast(message, duration: 2000.milliseconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1262,16 +1262,13 @@ class _LockDetailPageState extends State<LockDetailPage>
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
width: 42.w,
|
width: 42.w,
|
||||||
height: 42.h,
|
height: 42.h,
|
||||||
child: FlavorsImg(
|
child: Image.asset(iconUrl,
|
||||||
black: true,
|
width: 42.w,
|
||||||
child: Image.asset(iconUrl,
|
height: 42.w,
|
||||||
width: 42.w,
|
color: bottomBtnisEable
|
||||||
height: 42.w,
|
? AppColors.mainColor
|
||||||
color: bottomBtnisEable
|
: AppColors.lockDetailBottomBtnUneable,
|
||||||
? AppColors.mainColor
|
fit: BoxFit.fitWidth),
|
||||||
: AppColors.lockDetailBottomBtnUneable,
|
|
||||||
fit: BoxFit.fitWidth),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(height: 5.h),
|
SizedBox(height: 5.h),
|
||||||
Expanded(
|
Expanded(
|
||||||
@ -1295,16 +1292,13 @@ class _LockDetailPageState extends State<LockDetailPage>
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
width: 42.w,
|
width: 42.w,
|
||||||
height: 42.w,
|
height: 42.w,
|
||||||
child: FlavorsImg(
|
child: Image.asset(iconUrl,
|
||||||
black: true,
|
width: 42.w,
|
||||||
child: Image.asset(iconUrl,
|
height: 42.w,
|
||||||
width: 42.w,
|
color: bottomBtnisEable
|
||||||
height: 42.w,
|
? AppColors.mainColor
|
||||||
color: bottomBtnisEable
|
: AppColors.lockDetailBottomBtnUneable,
|
||||||
? AppColors.mainColor
|
fit: BoxFit.fitWidth),
|
||||||
: AppColors.lockDetailBottomBtnUneable,
|
|
||||||
fit: BoxFit.fitWidth),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(height: 15.h),
|
SizedBox(height: 15.h),
|
||||||
Text(
|
Text(
|
||||||
|
|||||||
@ -362,7 +362,8 @@ class _LockSetPageState extends State<LockSetPage>
|
|||||||
//todo: 双重认证、双锁联动国际化、API接口
|
//todo: 双重认证、双锁联动国际化、API接口
|
||||||
//双重认证
|
//双重认证
|
||||||
Obx(() => Visibility(
|
Obx(() => Visibility(
|
||||||
visible: state.lockFeature.value.doubleAuthentication == 1,
|
//state.lockFeature.value.doubleAuthentication == 1,
|
||||||
|
visible: false,
|
||||||
child: CommonItem(
|
child: CommonItem(
|
||||||
leftTitel: '双重认证'.tr,
|
leftTitel: '双重认证'.tr,
|
||||||
rightTitle: '',
|
rightTitle: '',
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import 'flavors.dart';
|
|||||||
import 'main.dart' as runner;
|
import 'main.dart' as runner;
|
||||||
|
|
||||||
Future<void> main() async {
|
Future<void> main() async {
|
||||||
F.appFlavor = Flavor.sky;
|
F.appFlavor = Flavor.xhj;
|
||||||
// AppLog.log('local调用了main函数');
|
// AppLog.log('local调用了main函数');
|
||||||
await runner.main();
|
await runner.main();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user