蓝牙门锁开源代码中删除用户

小程序开发相关产品技术讨论,包括面板、智能小程序、React Native、Ray跨端框架、Panel SDK、微信小程序、小程序开发工具(IDE)及其他开发技术相关等话题


Post Reply
zcj
Posts: 5

/** 删除解锁方式 api*/
deleteUnlock = (opmodeId: number) => {
return removeMemberUnlockMethod({
devId: this._devId,
opmodeId,
});
};
}

Code: Select all

         //文件路径 family-edit-unlock index.tsx
         const { run: deleteUnlock } = useRequest(Api.apis.deleteUnlock, {
         onBefore: () => showLoading({ title: Strings.getLang('deleting'), mask: true }),
         onSuccess() {
        hideLoading();
        showToast({ title: Strings.getLang('Password_delete_success'), icon: 'success' });
        router.back();
          },
         onError() {
         hideLoading();
         showToast({ title: Strings.getLang('Password_delete_failure'), icon: 'fail' });
          },
         manual: true,
        });

       <View
    onClick={() => deleteUnlock(query.opModeId)}
    className={styles.btn}
    style={{ color: 'red', marginLeft: '40rpx' }}
  >
    {Strings.getLang('Password_delete')}
  </View>
  • 问题描述(复现步骤):
    使用开源蓝牙锁的例程,在测试删除指纹id的时候发现,没有控制mcu的dp点下发删除操作,看了教学同样是使用removeMemberUnlockMethod进行移除用户,但是只是在app端删除成功

  • 预期结果:
    删除用户指纹id时,想同步下发删除的指令

  • 实际结果:

Post Reply