From 8cc80f789a34a2aabeb16cd2eceda5018f168ea0 Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 22 Sep 2022 16:20:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/aisafety.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routers/repo/aisafety.go b/routers/repo/aisafety.go index 911d9c339..654de0a58 100644 --- a/routers/repo/aisafety.go +++ b/routers/repo/aisafety.go @@ -24,15 +24,16 @@ func CloudBrainAiSafetyCreateTest(ctx *context.Context) { uuid := uuid.NewV4() id := uuid.String() seriaNoParas := ctx.Query("serialNo") + fileName := ctx.Query("fileName") //if jobType == string(models.JobTypeBenchmark) { - jsonStr, err := getJsonContent("http://192.168.207.34:8065/Test_zap1234/openi_aisafety/raw/branch/master/result/0302.json") + jsonStr, err := getJsonContent("http://192.168.207.34:8065/Test_zap1234/openi_aisafety/raw/branch/master/result/" + fileName) if err == nil { req := aisafety.TaskReq{ UnionId: id, EvalName: "test1", EvalContent: "test1", TLPath: "test1", - Indicators: []string{"ACC,CAV"}, + Indicators: []string{"ACC,ASS"}, CDName: "jzl_adv_data", BDName: "jzl_cln_data", }