From d8845b2644b5956470e67471a05720e34eaa7e51 Mon Sep 17 00:00:00 2001 From: wangbin Date: Mon, 7 Jul 2025 16:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E5=88=B0=E4=BA=BA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index e981b68..2fe1b88 100644 --- a/main.go +++ b/main.go @@ -1547,9 +1547,9 @@ func OnDeviceEventHandler(eventSource FLXDevice.EventArgSource, eventType FLXDev CrrentCongressStatus = 1 OpenDevice() CheckInStart() - localcache.OnChangeProcess() //开始报到时 清空实到未到人数 InitUpdateStatisticsNumShow() + localcache.OnChangeProcess() case FLXNetworkController.FlxNetworkComPara_Main_Pause_Register: //暂停报到 @@ -1775,6 +1775,7 @@ func InitUpdateStatisticsNumShow() { AN := 0 SH := 0 for id := range localcache.AllPerson { + localcache.AllPerson[id].AP_CheckState = 0 if localcache.AllPerson[id].AP_VotePower == 1 { SH = SH + 1 // if localcache.AllPerson[id].AP_CheckState == 1 { @@ -1789,9 +1790,11 @@ func InitUpdateStatisticsNumShow() { lblRShoudNum.Text = strconv.Itoa(localcache.ShouldNum) lblRArriveNum.Text = strconv.Itoa(localcache.ArriveNum) lblRNoNum.Text = strconv.Itoa(localcache.NoArriveNum) - localcache.CArriveNum = len(localcache.CArrivePersonsID) + localcache.CArriveNum = 0 lblRCArriveNum.Text = strconv.Itoa(localcache.CArriveNum) + localcache.CArrivePersonsID = []string{} + lblRShoudNum.Refresh() lblRArriveNum.Refresh() lblRNoNum.Refresh()