diff --git a/mq/instruction.go b/mq/instruction.go index a3ee695..1c36b3f 100644 --- a/mq/instruction.go +++ b/mq/instruction.go @@ -20,6 +20,7 @@ type TaskResponseBody struct { TaskCode string `json:"taskCode"` NodeId int64 `json:"nodeId"` ModelId int64 `json:"modelId"` + SrcPath string `json:"srcPath"` StartTime int64 `json:"startTime"` FinishTime int64 `json:"finishTime"` Msg string `json:"msg"` diff --git a/mq/service.go b/mq/service.go index f757970..e9a42b3 100644 --- a/mq/service.go +++ b/mq/service.go @@ -139,6 +139,7 @@ ReturnPoint: item.TaskCode = payload["taskCode"].(string) item.NodeId = int64(payload["nodeId"].(float64)) item.ModelId = int64(payload["modelId"].(float64)) + item.SrcPath = fc.FileName item.StartTime = startTime item.FinishTime = time.Now().Unix() if err != nil {