diff --git a/http/http.go b/http/http.go index 8f6f8af..a63eb8a 100644 --- a/http/http.go +++ b/http/http.go @@ -74,6 +74,7 @@ func doRequest(ctx context.Context, method string, url string, headers map[strin defer response.Close() result := response.ReadAll() resultStrut := &ghttp.DefaultHandlerResponse{} + gconv.Struct(result, &resultStrut) if resultStrut.Code == 200 || resultStrut.Code == 0 { gconv.Struct(resultStrut.Data, target) diff --git a/ragflow/client.go b/ragflow/client.go index 91601ad..2fb04fe 100644 --- a/ragflow/client.go +++ b/ragflow/client.go @@ -139,6 +139,7 @@ func (c *Client) request(ctx context.Context, method, path string, body interfac if endpoint == "" { return gerror.New("RAGFlow endpoints not configured") } + fullURL := endpoint + path // 添加详细日志:请求信息