Merge remote-tracking branch 'origin/release' into release

This commit is contained in:
XieHaoLiang 2024-07-25 10:47:17 +08:00
commit e7745d945b
12 changed files with 18 additions and 17 deletions

View File

@ -24,7 +24,7 @@
</Testables> </Testables>
</TestAction> </TestAction>
<LaunchAction <LaunchAction
buildConfiguration = "Debug-xhj" buildConfiguration = "Release-xhj"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0" launchStyle = "0"

View File

@ -60,9 +60,9 @@ FutureOr<void> main() async {
// //
Future<void> _initTranslation() async => TranslationLoader.loadTranslation( Future<void> _initTranslation() async => TranslationLoader.loadTranslation(
zhSource: 'images/lan/lan_zh.json', zhSource: 'lan/lan_zh.json',
enSource: 'images/lan/lan_en.json', enSource: 'lan/lan_en.json',
keySource: 'images/lan/lan_keys.json', keySource: 'lan/lan_keys.json',
); );
// //

View File

@ -36,7 +36,7 @@ class FaceUnlockLogic extends BaseGetXController {
Future<void> updateFaceSenseDistance() async { Future<void> updateFaceSenseDistance() async {
int faceInductionDistance = 0; int faceInductionDistance = 0;
if(state.senseDistance.value == '远距离'.tr){ if(state.senseDistance.value == '远距离'.tr){
faceInductionDistance = 1; faceInductionDistance = 3;
} }
if(state.senseDistance.value == '中距离'.tr){ if(state.senseDistance.value == '中距离'.tr){
@ -44,7 +44,7 @@ class FaceUnlockLogic extends BaseGetXController {
} }
if(state.senseDistance.value == '近距离'.tr){ if(state.senseDistance.value == '近距离'.tr){
faceInductionDistance = 3; faceInductionDistance = 1;
} }
if(state.senseDistance.value == '关闭'.tr){ if(state.senseDistance.value == '关闭'.tr){

View File

@ -18,13 +18,13 @@ class FaceUnlockState {
switch(lockSetInfoData.value.lockSettingInfo!.faceInductionDistance!){ switch(lockSetInfoData.value.lockSettingInfo!.faceInductionDistance!){
case 1: case 1:
senseDistance.value = '距离'; senseDistance.value = '距离';
break; break;
case 2: case 2:
senseDistance.value = '中距离'; senseDistance.value = '中距离';
break; break;
case 3: case 3:
senseDistance.value = '距离'; senseDistance.value = '距离';
break; break;
case 0: case 0:
senseDistance.value = '关闭'; senseDistance.value = '关闭';

View File

@ -41,7 +41,7 @@ class LockListLogic extends BaseGetXController {
!(element.lockAlias?.contains(state.searchStr.value) ?? true)); !(element.lockAlias?.contains(state.searchStr.value) ?? true));
}); });
} }
AppLog.log('lockList!.length:${_groupDataList[0].lockList!.length}'); // AppLog.log('lockList!.length:${_groupDataList[0].lockList!.length}');
return list; return list;
} }

View File

@ -126,7 +126,7 @@ class _LockListXHJPageState extends State<LockListXHJPage> with RouteAware {
), ),
Expanded( Expanded(
child: Obx(() { child: Obx(() {
AppLog.log('logic.groupDataList[0].lockList!.length:${logic.groupDataList[0].lockList!.length}'); // AppLog.log('logic.groupDataList[0].lockList!.length:${logic.groupDataList[0].lockList!.length}');
return ListView.builder( return ListView.builder(
itemCount: logic.groupDataList.length ?? 0, itemCount: logic.groupDataList.length ?? 0,
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {

View File

@ -40,6 +40,7 @@ class LockMainLogic extends BaseGetXController {
if (entity.errorCode!.codeIsSuccessful) { if (entity.errorCode!.codeIsSuccessful) {
AppLog.log('请求列表调用 loadMainDataLogic'); AppLog.log('请求列表调用 loadMainDataLogic');
await loadMainDataLogic(entity.data!); await loadMainDataLogic(entity.data!);
updateZoneOffsetsAndLanguages();
} }
return entity; return entity;
} }
@ -76,14 +77,14 @@ class LockMainLogic extends BaseGetXController {
// //
if (Get.isRegistered<LockListLogic>()) { if (Get.isRegistered<LockListLogic>()) {
// //
AppLog.log('检测控制器是否存 调用了 setLockListInfoGroupEntity'); // AppLog.log('检测控制器是否存 调用了 setLockListInfoGroupEntity');
Get.find<LockListLogic>().setLockListInfoGroupEntity(entity); Get.find<LockListLogic>().setLockListInfoGroupEntity(entity);
} else { } else {
// //
Future<dynamic>.delayed(200.milliseconds, () { Future<dynamic>.delayed(200.milliseconds, () {
if (Get.isRegistered<LockListLogic>()) { if (Get.isRegistered<LockListLogic>()) {
// //
AppLog.log('检测控制器是否存 延迟调用了 setLockListInfoGroupEntity'); // AppLog.log('检测控制器是否存 延迟调用了 setLockListInfoGroupEntity');
Get.find<LockListLogic>().setLockListInfoGroupEntity(entity); Get.find<LockListLogic>().setLockListInfoGroupEntity(entity);
} }
}); });
@ -301,7 +302,7 @@ class LockMainLogic extends BaseGetXController {
connectListener(); connectListener();
// AppLog.log('onInit() updateZoneOffsetsAndLanguages'); // AppLog.log('onInit() updateZoneOffsetsAndLanguages');
updateZoneOffsetsAndLanguages(); // updateZoneOffsetsAndLanguages();
} }
@override @override

View File

@ -66,8 +66,7 @@ class _NearbyLockPageState extends State<NearbyLockPage> with RouteAware {
child: ListView.separated( child: ListView.separated(
itemCount: state.devices.length, itemCount: state.devices.length,
itemBuilder: (c, index) { itemBuilder: (c, index) {
return nearbyLockItem( return nearbyLockItem('images/icon_lockGroup_item.png', state.devices[index], () {
'images/icon_lockGroup_item.png', state.devices[index], () {
String advName = state.devices[index].advertisementData.advName; String advName = state.devices[index].advertisementData.advName;
state.selectLockName.value = advName; state.selectLockName.value = advName;
logic.getServerDatetime(); logic.getServerDatetime();

View File

@ -77,7 +77,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# 1.0.67+2024062501xhj 线上环境,提交测试:回归 测试部门bug # 1.0.67+2024062501xhj 线上环境,提交测试:回归 测试部门bug
# 1.0.69+2024070301xhj 线上环境,提交测试:周常 bug 修复 # 1.0.69+2024070301xhj 线上环境,提交测试:周常 bug 修复
# 1.0.69+2024070302xhj 线上环境,提交测试:周常 bug 修复 # 1.0.69+2024070302xhj 线上环境,提交测试:周常 bug 修复
# 1.0.70+2024072401xhj 线上环境,提交测试:周常 bug 修复 # 1.0.70+2024072401xhj 线上环境,提交测试:回归 bug
# 1.0.70+2024072402xhj 线上环境,提交测试:回归 bug
version: 1.0.70+2024072402 version: 1.0.70+2024072402
@ -259,10 +260,10 @@ flutter:
- images/ - images/
- images/tabbar/ - images/tabbar/
- images/main/ - images/main/
- images/lan/
- images/mine/ - images/mine/
- images/lockType/ - images/lockType/
- assets/ - assets/
- lan/
# An image asset can refer to one or more resolution-specific "variants", see # An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware # https://flutter.dev/assets-and-images/#resolution-aware