lint
This commit is contained in:
@@ -62,8 +62,6 @@ class MainActivity : ComponentActivity() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R &&
|
||||
!Environment.isExternalStorageManager()) {
|
||||
showAllFilesAccessDialog()
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
// 初始化 PreferenceManager
|
||||
|
||||
@@ -44,7 +44,6 @@ class UploadRepository(val context: Context) {
|
||||
println("✅ UploadRepository: 文件上传成功, URL: $fileUrl")
|
||||
fileUrl
|
||||
} else {
|
||||
// val errorMsg = response.body()?.message ?: "上传失败"
|
||||
println("❌ UploadRepository: 文件上传失败: $1")
|
||||
null
|
||||
}
|
||||
@@ -121,21 +120,8 @@ class UploadRepository(val context: Context) {
|
||||
// 上传通话记录和关联的音频文件
|
||||
suspend fun uploadCallRecordOnly(callRecord: CallRecord): Boolean {
|
||||
return try {
|
||||
var audioFileUrl: String? = null
|
||||
|
||||
// // 如果有音频文件,先上传音频文件
|
||||
// callRecord.audioFileUri?.let { audioUri ->
|
||||
// callRecord.audioFileName?.let { fileName ->
|
||||
// println("🎵 UploadRepository: 开始上传关联的音频文件")
|
||||
// audioFileUrl = uploadAudioFile(Uri.parse(audioUri), fileName)
|
||||
// if (audioFileUrl == null) {
|
||||
// println("⚠️ UploadRepository: 音频文件上传失败,但仍继续上传通话记录")
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// 然后上传通话记录
|
||||
uploadCallRecord(callRecord, audioFileUrl)
|
||||
// 上传通话记录
|
||||
uploadCallRecord(callRecord)
|
||||
|
||||
} catch (e: Exception) {
|
||||
println("❌ UploadRepository: 完整上传过程异常: ${e.message}")
|
||||
|
||||
Reference in New Issue
Block a user