苹果电脑开发一段

This commit is contained in:
2026-02-28 09:05:28 +08:00
parent 30ab258b88
commit fc8d4ba458
10 changed files with 554 additions and 208 deletions
+4 -4
View File
@@ -75,8 +75,8 @@ function judgeIosPermissionRecord() {
console.log('麦克风state', state);
switch (state) {
case 'authorized':
console.log("麦克风权限是否开启");
resolve()
console.log("麦克风权限已经开启");
resolve('authorized')
break;
case 'denied': // ios拒绝,安卓拒绝或者未授权都是这个
if (IsAndEnv) { // 安卓二次判定
@@ -94,10 +94,10 @@ function judgeIosPermissionRecord() {
// 前往权限设置页面
uni.openAppAuthorizeSetting();
}
reject()
reject(new Error('前往权限设置页面用户点击了否'))
break;
case 'not determined': // 表示尚未请求授权,仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关
resolve()
resolve('not determined')
break;
case 'config error': // 只有在 App 端时返回
resolve()