- 改动异步任务完成消息通知内容
This commit is contained in:
@@ -301,9 +301,9 @@ func (t *BaseTask) run(taskHandler func()) {
|
||||
if authInfo, err := t.ctx.GetV2AuthInfo(); err == nil { // 这里应该是不管登录类型,直接以可能的方式发消息
|
||||
var content string
|
||||
if t.Status == TaskStatusFinished {
|
||||
content = fmt.Sprintf("你的异步任务[%s]执行成功完成", t.Name)
|
||||
content = fmt.Sprintf("你的异步任务[%s],ID[%s]执行成功完成", t.Name, t.ID)
|
||||
} else {
|
||||
content = fmt.Sprintf("你的异步任务[%s]执行失败,%s", t.Name, t.Err.Error())
|
||||
content = fmt.Sprintf("你的异步任务[%s],ID[%s]执行失败,%s", t.Name, t.ID, t.Err.Error())
|
||||
}
|
||||
msg.SendUserMessage(authInfo.UserID, "异步任务完成", content)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user