鸿蒙手机-图传锁-首次配置wifi的KeyId问题

This commit is contained in:
sky.min 2026-01-07 13:53:23 +08:00
parent 780ae8ccd2
commit 361a4c441e

View File

@ -1,5 +1,6 @@
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:star_lock/blue/entity/lock_user_no_list_entity.dart';
import 'package:star_lock/blue/io_protocol/io_cleanUpUsers.dart';
import 'package:star_lock/common/XSConstantMacro/XSConstantMacro.dart';
@ -276,6 +277,12 @@ class SenderBeforeDataManage {
// NO
Future<void> _updateLockUserNo(List<int> dataList) async {
// 使访 keyId
final String? keyId = CommonDataManage().currentKeyInfo.keyId?.toString();
if (keyId == null) {
debugPrint('keyId获取失败');
return;
}
final LockNetTokenEntity entity = await ApiRepository.to.updateLockUserNo(
keyId: CommonDataManage().currentKeyInfo.keyId.toString(), lockUserNo: CommonDataManage().currentKeyInfo.lockUserNo.toString());
if (entity.errorCode!.codeIsSuccessful) {