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

This commit is contained in:
liyi 2025-06-12 15:29:27 +08:00
commit ceb889c3a3
3 changed files with 55 additions and 6 deletions

View File

@ -126,6 +126,17 @@ class LockDetailLogic extends BaseGetXController {
TalkStatus.answeredSuccessfully) {
showToast('开锁成功'.tr);
}
//
if (state.keyInfos.value.keyType == 3) {
final LockListInfoEntity entity = await ApiRepository.to
.deletOwnerKeyData(
lockId: state.keyInfos.value.lockId.toString(),
keyId: state.keyInfos.value!.keyId.toString(),
includeUnderlings: 0);
if (entity.errorCode!.codeIsSuccessful) {
AppLog.log("删除成功");
}
}
break;
case 0x06:
//
@ -532,8 +543,7 @@ class LockDetailLogic extends BaseGetXController {
final List<int> getPublicKeyList =
changeStringListToIntList(publicKey!);
AppLog.log(
'发送同步锁记录命令:${BlueManage().connectDeviceName}');
AppLog.log('发送同步锁记录命令:${BlueManage().connectDeviceName}');
IoSenderManage.senderReferEventRecordTimeCommand(
keyID: BlueManage().connectDeviceName,
userID: await Storage.getUid(),

View File

@ -798,8 +798,48 @@ class UploadDataLogic extends BaseGetXController {
}
}
} else {
state.indexCount.value = 0;
state.sureBtnState.value = 0;
if (uploadType == 1) {
// 1
// state.indexCount.value = 0;
// state.sureBtnState.value = 0;
// showToast('上传成功'.tr);
} else {
// 2
switch (recordType) {
// case 1:
// //
//
// break;
case 2:
//
getUpdataLockCardList();
break;
case 3:
// IC卡上传成功
getUpdataLockFingerprintList();
break;
case 4:
//
getUpdataLockFaceList();
break;
case 5:
//
getUpdataLockPalmVeinList();
break;
case 6:
//
getUpdataLockRemoteControlList();
break;
case 7:
//
getUpdataLockSet();
break;
default:
break;
}
}
// state.indexCount.value = 0;
// state.sureBtnState.value = 0;
dismissEasyLoading();
}
}

View File

@ -68,8 +68,7 @@ class _PasswordKeyListPageState extends State<PasswordKeyListPage>
final bool? isDemoMode =
await Storage.getBool(ifIsDemoModeOrNot);
if (isDemoMode == false) {
final bool isNetWork =
await LockMainLogic.to()?.judgeTheNetwork() ?? false;
final bool isNetWork = await logic.isConnected() ?? false;
if (!isNetWork) {
return;
}