Commit 7eb6ad4c authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update retry msg

parent a2dfb5cd
......@@ -59,6 +59,7 @@ type Task struct {
Status string `json:"status"`
TelegramActiveThreshold int `json:"telegramActiveThreshold"` // 仅电报活跃可用
Enable bool `json:"enable"`
Msg string `json:"msg"`
}
type CreateTaskRequest struct {
......
package service
import (
"taskcenter/constant"
apiModel "taskcenter/model/api"
dbModel "taskcenter/model/db"
"taskcenter/util"
......@@ -79,6 +80,9 @@ func (s *Service) GetGroup(gid int, userId string, admin bool) (resp *apiModel.G
return nil, err
}
_task.Status = status
if status == constant.TaskHistoryStatusRetry {
_task.Msg = "The task is not completed, please try again."
}
resp.Tasks = append(resp.Tasks, _task)
}
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment