Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskcenter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
taskcenter
Commits
7eb6ad4c
Commit
7eb6ad4c
authored
Dec 04, 2024
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update retry msg
parent
a2dfb5cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
api.go
model/api/api.go
+1
-0
group.go
service/group.go
+4
-0
No files found.
model/api/api.go
View file @
7eb6ad4c
...
@@ -59,6 +59,7 @@ type Task struct {
...
@@ -59,6 +59,7 @@ type Task struct {
Status
string
`json:"status"`
Status
string
`json:"status"`
TelegramActiveThreshold
int
`json:"telegramActiveThreshold"`
// 仅电报活跃可用
TelegramActiveThreshold
int
`json:"telegramActiveThreshold"`
// 仅电报活跃可用
Enable
bool
`json:"enable"`
Enable
bool
`json:"enable"`
Msg
string
`json:"msg"`
}
}
type
CreateTaskRequest
struct
{
type
CreateTaskRequest
struct
{
...
...
service/group.go
View file @
7eb6ad4c
package
service
package
service
import
(
import
(
"taskcenter/constant"
apiModel
"taskcenter/model/api"
apiModel
"taskcenter/model/api"
dbModel
"taskcenter/model/db"
dbModel
"taskcenter/model/db"
"taskcenter/util"
"taskcenter/util"
...
@@ -79,6 +80,9 @@ func (s *Service) GetGroup(gid int, userId string, admin bool) (resp *apiModel.G
...
@@ -79,6 +80,9 @@ func (s *Service) GetGroup(gid int, userId string, admin bool) (resp *apiModel.G
return
nil
,
err
return
nil
,
err
}
}
_task
.
Status
=
status
_task
.
Status
=
status
if
status
==
constant
.
TaskHistoryStatusRetry
{
_task
.
Msg
=
"The task is not completed, please try again."
}
resp
.
Tasks
=
append
(
resp
.
Tasks
,
_task
)
resp
.
Tasks
=
append
(
resp
.
Tasks
,
_task
)
}
}
return
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment