Browse Source

提交代码

tags/v1.22.12.1^2
ychao_1983 3 years ago
parent
commit
ce2e2ecdd4
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      modules/grampus/resty.go

+ 6
- 1
modules/grampus/resty.go View File

@@ -257,11 +257,16 @@ func GetImages(processorType string, jobType string) (*models.GetGrampusImagesRe

retry := 0

queryType := "TrainJob"
if jobType == string(models.JobTypeDebug) {
queryType = "Notebook"
}

sendjob:
_, err := client.R().
SetAuthToken(TOKEN).
SetResult(&result).
Get(HOST + urlGetImages + "?processorType=" + processorType + "&jobType=" + jobType)
Get(HOST + urlGetImages + "?processorType=" + processorType + "&trainType=" + queryType)

if err != nil {
return nil, fmt.Errorf("resty GetImages: %v", err)


Loading…
Cancel
Save