Merge branch 'develop_sky' into 'canary_release_sky'

Develop sky

See merge request StarlockTeam/app-starlock!160
This commit is contained in:
李仪 2025-06-11 01:24:16 +00:00
commit 5767351b6e
2 changed files with 54 additions and 4 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();
}
}