From 20c62d9927b93ccc232696a964dc256c46044f7f Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Tue, 14 Oct 2025 19:47:25 +0800 Subject: [PATCH] ss --- .../Views/JumpRope/GroupJumpRope.xaml.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Wpf_AiSportsMicrospace/Views/JumpRope/GroupJumpRope.xaml.cs b/Wpf_AiSportsMicrospace/Views/JumpRope/GroupJumpRope.xaml.cs index 5af4ff7..6c4cdb3 100644 --- a/Wpf_AiSportsMicrospace/Views/JumpRope/GroupJumpRope.xaml.cs +++ b/Wpf_AiSportsMicrospace/Views/JumpRope/GroupJumpRope.xaml.cs @@ -350,10 +350,9 @@ namespace Wpf_AiSportsMicrospace.Views private void UpdateCircleCounts(List humans) { - lock (_updateLock) - { + double radiusNormX = 0.07; - double radiusNormY = 0.07; + double radiusNormY = 0.14; for (int i = 0; i < circlePositions.Count; i++) { @@ -390,12 +389,14 @@ namespace Wpf_AiSportsMicrospace.Views // 根据是否有人和跳绳数字判断状态 bool hasHuman = humanInCircle != null; + lock (_updateLock) + { userList[i].ImageState = GetJumpState(i, hasHuman); - - // 推送计数 - if (hasHuman) - sports[i].Pushing(humanInCircle); } + + // 推送计数 + if (hasHuman) + sports[i].Pushing(humanInCircle); } } @@ -426,7 +427,7 @@ namespace Wpf_AiSportsMicrospace.Views // 数字未变化,判断是否超过 2 秒 double elapsed = (DateTime.Now - lastChangeTime).TotalSeconds; - if (elapsed >= 3) + if (elapsed >= 2) { // 超过 2 秒未变化 → 停止 _jumpStatus[circleIndex] = (currentNumber, lastChangeTime, "1");