diff --git a/worker/staff.go b/worker/staff.go index 6868f82..b15d9ff 100644 --- a/worker/staff.go +++ b/worker/staff.go @@ -227,8 +227,8 @@ func (s *Staff) loadHoliday(month string) (map[string]float64, error) { } userId := detail.GetUserid() holidayType := detail.GetValue("请假类型") - fields := strings.SplitN(holidayType, ",", 2) - hours := float64(cast.ToInt64(fields[1])) / float64(3600*8) + fields := strings.SplitN(holidayType, ",", 4) + hours := float64(cast.ToInt64(fields[3])) / float64(3600*8) if v, ok := result[userId]; ok { result[userId] = v + hours } else {