From 8b6698ae868e3b76227535b13a42fa1d3138fce7 Mon Sep 17 00:00:00 2001 From: gedoor Date: Thu, 14 Oct 2021 17:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/service/HttpReadAloudService.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index 33b8d58d4..7b486e59b 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -144,7 +144,7 @@ class HttpReadAloudService : BaseReadAloudService(), downloadAudio() } catch (e: ConnectException) { removeSpeakCacheFile(fileName) - toastOnUi("网络错误") + toastOnUi("tts接口网络错误") } catch (e: IOException) { val file = getSpeakFileAsMd5(fileName) if (file.exists()) { @@ -152,8 +152,10 @@ class HttpReadAloudService : BaseReadAloudService(), } toastOnUi("tts文件解析错误") } catch (e: Exception) { - e.printOnDebug() removeSpeakCacheFile(fileName) + AppLog.put("tts接口错误\n${e.localizedMessage}", e) + toastOnUi("tts接口错误\n${e.localizedMessage}") + e.printOnDebug() } } }