优化电子密钥/授权管理员下发

This commit is contained in:
sky.min 2025-12-24 10:59:26 +08:00
parent ee87827ddc
commit 0267f58a27
3 changed files with 1 additions and 20 deletions

View File

@ -231,7 +231,7 @@ class SenderBeforeDataManage {
endHour: isRound ? endTime!.hour : 0,
endMin: isRound ? endTime!.minute : 0,
role: currentKeyInfo.keyRight == 1 ? 1 : 0,
password: '123456',
password: '',
needAuthor: 1,
publicKey: publicKeyDataList,
privateKey: getPrivateKeyList,

View File

@ -697,15 +697,6 @@ class LockDetailLogic extends BaseGetXController {
return;
}
// API
final LoginEntity entity = await ApiRepository.to.remoteOpenLock(
lockId: state.keyInfos.value.lockId.toString(),
timeOut: 60,
);
if (entity.errorCode!.codeIsSuccessful) {
AppLog.log('已开锁'.tr);
}
//
if (state.keyInfos.value.hasGateway == 1){
// API

View File

@ -37,16 +37,6 @@ class _LockSetPageState extends State<LockSetPage>
Future<void> getHttpData() async {
logic.getLockSettingInfoData().then((LockSetInfoEntity value) {
//
final faceAntiMisopenTime = value.data?.lockSettingInfo?.faceEnErrUnlock;
final int motorTorsion = state.lockSetInfoData.value.lockSettingInfo?.motorTorsion ?? 0;
final int autoLockSeconds = state.lockSetInfoData.value.lockSettingInfo?.autoLockSecond ?? 0;
debugPrint('=== 锁面容防误开时间 ===');
debugPrint('Face Anti-Misopen Time: $faceAntiMisopenTime');
debugPrint('=== 锁电机功率设置 ===');
debugPrint('Motor Torsion Setting: $motorTorsion');
debugPrint('=== 锁自动闭锁时间 ===');
debugPrint('Auto Lock Time: ${autoLockSeconds}s');
if (mounted) {
setState(() {});
}