From 803e04b1ba7a513e8a04899c82b38f3c2fac131c Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期一, 01 七月 2024 10:04:06 +0800
Subject: [PATCH] fix

---
 DolphinEnglishLearnStudent/Moudle/Home/Listen/View/GameBeginTipView.swift |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/DolphinEnglishLearnStudent/Moudle/Home/Listen/View/GameBeginTipView.swift b/DolphinEnglishLearnStudent/Moudle/Home/Listen/View/GameBeginTipView.swift
index b3f179e..1e880e8 100644
--- a/DolphinEnglishLearnStudent/Moudle/Home/Listen/View/GameBeginTipView.swift
+++ b/DolphinEnglishLearnStudent/Moudle/Home/Listen/View/GameBeginTipView.swift
@@ -37,9 +37,9 @@
 												var time:Int = 5
 												levelView.timer = Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { timer in
 																time -= 1
-																levelView.label_time.text = "\(time)"
+																levelView.label_time.text = "\(max(time,1))"
 																levelView.animation()
-																if time <= 0{
+																if time < 1{
 																				timer.invalidate()
 																				UIView.animate(withDuration: 0.4) {
 																								levelView.transform = .init(scaleX: 0.1, y: 0.1)

--
Gitblit v1.7.1