fix: send_stats task_id type

This commit is contained in:
Your Name
2026-01-06 16:47:40 +08:00
parent 558edc864b
commit 29ad95ac98
3 changed files with 6 additions and 24 deletions
+2 -8
View File
@@ -2,7 +2,6 @@ package statistic_service
import (
"message-nest/models"
"strconv"
)
type StatisticService struct {
@@ -44,11 +43,6 @@ func (sw *StatisticService) GetSendStatsByTask() (models.SendStatsData, error) {
if days <= 0 {
days = 30 // 默认30天
}
taskID, err := strconv.ParseUint(sw.TaskID, 10, 64)
if err != nil {
return models.SendStatsData{}, err
}
return models.GetSendStatsByTask(uint(taskID), days)
return models.GetSendStatsByTask(sw.TaskID, days)
}