| @@ -24,15 +24,16 @@ func CloudBrainAiSafetyCreateTest(ctx *context.Context) { | |||||
| uuid := uuid.NewV4() | uuid := uuid.NewV4() | ||||
| id := uuid.String() | id := uuid.String() | ||||
| seriaNoParas := ctx.Query("serialNo") | seriaNoParas := ctx.Query("serialNo") | ||||
| fileName := ctx.Query("fileName") | |||||
| //if jobType == string(models.JobTypeBenchmark) { | //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 { | if err == nil { | ||||
| req := aisafety.TaskReq{ | req := aisafety.TaskReq{ | ||||
| UnionId: id, | UnionId: id, | ||||
| EvalName: "test1", | EvalName: "test1", | ||||
| EvalContent: "test1", | EvalContent: "test1", | ||||
| TLPath: "test1", | TLPath: "test1", | ||||
| Indicators: []string{"ACC,CAV"}, | |||||
| Indicators: []string{"ACC,ASS"}, | |||||
| CDName: "jzl_adv_data", | CDName: "jzl_adv_data", | ||||
| BDName: "jzl_cln_data", | BDName: "jzl_cln_data", | ||||
| } | } | ||||