JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_修改安卓第一次音频授权逻辑
This commit is contained in:
@@ -8,8 +8,8 @@ android {
|
||||
applicationId "cn.com.jlbank.ai"
|
||||
minSdkVersion 33
|
||||
targetSdkVersion 33
|
||||
versionName System.getenv("versionName") ?: "0.0.8"
|
||||
versionCode System.getenv("versionCode")?.toInteger() ?: 231
|
||||
versionName System.getenv("versionName") ?: "1.0.0"
|
||||
versionCode System.getenv("versionCode")?.toInteger() ?: 281
|
||||
multiDexEnabled true
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
|
||||
@@ -83,7 +83,7 @@ function judgeIosPermissionRecord() {
|
||||
if (IsAndEnv) { // 安卓二次判定
|
||||
const result = await requestAndroidPermission('android.permission.RECORD_AUDIO')
|
||||
if (result === 1) {
|
||||
resolve()
|
||||
resolve('denied')
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -269,8 +269,9 @@
|
||||
if (props.canAnswer) return common.msg(props.canAnswerText);
|
||||
try {
|
||||
const state = await permissionApi.judgeIosPermission('record');
|
||||
console.log('state', state);
|
||||
if (state === 'not determined') return preRequestRecordPermission();
|
||||
if (state === 'not determined') return preRequestRecordPermission(); // ios处理
|
||||
if (state === 'denied') return; // 安卓处理
|
||||
|
||||
} catch (e) {
|
||||
console.error('麦克风权限申请失败:', e);
|
||||
return;
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@
|
||||
"name" : "吉AI学",
|
||||
"appid" : "__UNI__EDE0E52",
|
||||
"description" : "",
|
||||
"versionName" : "0.2.1",
|
||||
"versionCode" : 277,
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : 281,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user