[AI Generated]: fix(*): 修复蓝牙权限授权、bus订阅泄漏、OTA重复回调、WiFi列表容错及用户同步字段映射问题

This commit is contained in:
17792275749
2026-04-08 11:29:45 +08:00
parent 3b65d2fb0d
commit 228c68abca
6 changed files with 65 additions and 24 deletions
+5 -4
View File
@@ -47,10 +47,11 @@ Page({
if (scopeToRequest.length > 0) {
try {
await wx.authorize({
scope: scopeToRequest[0]
});
this.checkBluetoothPermissionAndInit();
// 逐个授权所有缺失的权限
for (const scope of scopeToRequest) {
await wx.authorize({ scope });
}
this.openBluetoothAdapter();
} catch (authErr) {
if (this.data.isShowingModal) {
return;