From 86a670e59bb0378ad4df100677222e664073129a Mon Sep 17 00:00:00 2001 From: qiwang <1364512070@qq.com> Date: Wed, 23 Oct 2024 11:11:23 +0800 Subject: [PATCH] fix: Restore taskAi field Former-commit-id: bc6af6d16b53319c959ab5dc79296bdcd1808905 --- internal/logic/core/pulltaskinfologic.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/internal/logic/core/pulltaskinfologic.go b/internal/logic/core/pulltaskinfologic.go index 12ba381e..a727f766 100644 --- a/internal/logic/core/pulltaskinfologic.go +++ b/internal/logic/core/pulltaskinfologic.go @@ -2,18 +2,14 @@ package core import ( "context" - "encoding/json" - "fmt" "github.com/jinzhu/copier" + "github.com/zeromicro/go-zero/core/logx" clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models/cloud" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gorm.io/gorm" - "log" - - "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) type PullTaskInfoLogic struct { @@ -84,7 +80,7 @@ func (l *PullTaskInfoLogic) PullTaskInfo(req *clientCore.PullTaskInfoReq) (*clie return nil, err } utils.Convert(aiModelList, &resp.AiInfoList) - if len(resp.AiInfoList) > 0 { + /*if len(resp.AiInfoList) > 0 { for i, aiInfo := range aiModelList { if resp.AiInfoList[i].Environments != "" { // 定义一个map来存储解析后的JSON数据 @@ -116,7 +112,7 @@ func (l *PullTaskInfoLogic) PullTaskInfo(req *clientCore.PullTaskInfoReq) (*clie } } - } + }*/ } return &resp, nil }