This commit is contained in:
gedoor 2021-10-14 19:01:24 +08:00
parent 1ae61a04b7
commit 7875e73c6b
2 changed files with 4 additions and 3 deletions

View File

@ -145,13 +145,14 @@ class HttpReadAloudService : BaseReadAloudService(),
downloadAudio()
} catch (e: ConnectException) {
removeSpeakCacheFile(fileName)
toastOnUi("tts接口网络错误")
toastOnUi("tts接口网络错误\n${e.localizedMessage}")
} catch (e: IOException) {
val file = getSpeakFileAsMd5(fileName)
if (file.exists()) {
FileUtils.deleteFile(file.absolutePath)
}
toastOnUi("tts文件解析错误")
AppLog.put("tts文件解析错误")
toastOnUi("tts文件解析错误\n${e.localizedMessage}")
} catch (e: Exception) {
removeSpeakCacheFile(fileName)
createSpeakFileAsMd5IfNotExist(fileName)

View File

@ -122,7 +122,7 @@ class SourceLoginDialog : BaseDialogFragment(R.layout.dialog_login) {
}
} catch (e: Exception) {
AppLog.put("登录出错\n${e.localizedMessage}", e)
context?.toastOnUi("error:${e.localizedMessage}")
context?.toastOnUi("登录出错\n${e.localizedMessage}")
e.printOnDebug()
}
}