JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_修改安卓第一次音频授权逻辑

This commit is contained in:
田岩
2026-03-23 10:42:47 +08:00
parent e341ebad41
commit c2e9b6c706
5 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -83,7 +83,7 @@ function judgeIosPermissionRecord() {
if (IsAndEnv) { // 安卓二次判定
const result = await requestAndroidPermission('android.permission.RECORD_AUDIO')
if (result === 1) {
resolve()
resolve('denied')
break;
}
}
+3 -2
View File
@@ -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
View File
@@ -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.