|
@@ -293,8 +293,11 @@ class PQSelecteMusicView: UIView {
|
|
|
//暂停播放音乐 并刷新 UI
|
|
|
func pausePlayer() {
|
|
|
avPlayer.pause()
|
|
|
- currentPlayData?.voiceStatue = .isPause
|
|
|
- selectMusicCollection.reloadData()
|
|
|
+ if(currentPlayData?.voiceStatue == .isPlaying){
|
|
|
+ currentPlayData?.voiceStatue = .isPause
|
|
|
+ selectMusicCollection.reloadData()
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|