[AI Generated]: fix(*): 修复蓝牙权限授权、bus订阅泄漏、OTA重复回调、WiFi列表容错及用户同步字段映射问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user