|
|
|
@@ -238,9 +238,6 @@ func (c *Client) QueryAITrainLog(req QueryAITrainLogReq, token string) (*QueryAI |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
|
|
|
|
//req.AdapterID = "1777144940459986944" |
|
|
|
//req.InstanceNum = "0" |
|
|
|
|
|
|
|
resp, err := http2.GetJSON(targetUrl, http2.RequestParam{ |
|
|
|
Query: req, |
|
|
|
Header: map[string]string{ |
|
|
|
@@ -251,6 +248,9 @@ func (c *Client) QueryAITrainLog(req QueryAITrainLogReq, token string) (*QueryAI |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
|
|
|
|
//all, err := io.ReadAll(resp.Body) |
|
|
|
//println(string(all)) |
|
|
|
|
|
|
|
contType := resp.Header.Get("Content-Type") |
|
|
|
if strings.Contains(contType, http2.ContentTypeJSON) { |
|
|
|
var codeResp response[QueryAITrainLogResp] |
|
|
|
|