修复redis和queueprocessor
This commit is contained in:
@@ -89,9 +89,6 @@ func doRequest(ctx context.Context, method string, url string, headers map[strin
|
||||
defer response.Close()
|
||||
result := response.ReadAll()
|
||||
|
||||
// 添加调试日志:打印原始响应
|
||||
g.Log().Debugf(ctx, "[HTTP] 原始响应: %s", string(result))
|
||||
|
||||
// 第三方API特例:RAGFlow等第三方API响应格式为{code,data,message}一层结构,直接解析原始JSON到target
|
||||
// 内部API格式为{code:200,message:"",data:{...}}两层结构,需经过DefaultHandlerResponse二次解析
|
||||
// 判断依据:URL包含/api/v1/(不影响内部API调用)
|
||||
@@ -102,7 +99,6 @@ func doRequest(ctx context.Context, method string, url string, headers map[strin
|
||||
if err = gconv.Struct(result, target); err != nil {
|
||||
return errors.New("第三方API响应解析失败: " + err.Error())
|
||||
}
|
||||
g.Log().Debugf(ctx, "[HTTP] 第三方API直接解析target: %+v", target)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user