From 1d7859609519bea0ffc36e690cce435b312b5192 Mon Sep 17 00:00:00 2001 From: wangjian Date: Fri, 24 Mar 2023 08:50:34 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mq/instruction.go | 1 + mq/service.go | 1 + 2 files changed, 2 insertions(+) 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 {