Skip to content

Commit bca91c2

Browse files
committed
Revert "Update."
This reverts commit 0b401db.
1 parent 0b401db commit bca91c2

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

service/rpc/server.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,15 @@ func (s *ServerHandler) ReportTask(c context.Context, r *pb.TaskResult) (*pb.Rec
156156
endTime := time.Now()
157157

158158
if cr.PushSuccessful && r.GetSuccessful() {
159-
message := fmt.Sprintf("[%s]\n任务名称: %s\n执行设备: %s (ID:%d)\n开始时间: %s\n结束时间: %s\n执行结果: 成功",
160-
singleton.Localizer.MustLocalize(&i18n.LocalizeConfig{
161-
MessageID: "ScheduledTaskExecutedSuccessfully",
162-
}),
163-
cr.Name,
164-
singleton.ServerList[clientID].Name, clientID,
165-
startTime.Format("2006-01-02 15:04:05"),
166-
endTime.Format("2006-01-02 15:04:05"))
159+
message := fmt.Sprintf("[%s]\n任务名称: %s\n执行设备: %s (ID:%d)\n开始时间: %s\n结束时间: %s\n执行结果: 成功\n执行详情:\n%s",
160+
singleton.Localizer.MustLocalize(&i18n.LocalizeConfig{
161+
MessageID: "ScheduledTaskExecutedSuccessfully",
162+
}),
163+
cr.Name,
164+
singleton.ServerList[clientID].Name, clientID,
165+
startTime.Format("2006-01-02 15:04:05"),
166+
endTime.Format("2006-01-02 15:04:05"),
167+
r.GetData())
167168

168169
singleton.SafeSendNotification(cr.NotificationTag, message, nil, &curServer)
169170
}

0 commit comments

Comments
 (0)