优化电子密钥/授权管理员下发
This commit is contained in:
parent
ee87827ddc
commit
0267f58a27
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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(() {});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user