From 607c74dfcfb5e52e56604f635d1d6a081cddcace Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期六, 06 七月 2024 00:12:19 +0800 Subject: [PATCH] fix bug --- DolphinEnglishLearnStudent/Config/VoicePlayer.swift | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/DolphinEnglishLearnStudent/Config/VoicePlayer.swift b/DolphinEnglishLearnStudent/Config/VoicePlayer.swift index 5b87497..63a8a8a 100644 --- a/DolphinEnglishLearnStudent/Config/VoicePlayer.swift +++ b/DolphinEnglishLearnStudent/Config/VoicePlayer.swift @@ -52,7 +52,8 @@ func playerAt(url:String?){ guard let u = url else {return} if player?.isPlaying ?? false{ - player?.stop() +// player?.stop() + return } //文件存在:直接播放缓存路径的语音 let fileURL = self.voiceCacheDirectory.appendingPathComponent(URL(fileURLWithPath: u).lastPathComponent).droppedScheme() -- Gitblit v1.7.1