This commit is contained in:
Mrx
2026-06-11 16:39:46 +08:00
parent 0642d92069
commit 47ade3de94
7 changed files with 14 additions and 1 deletions

View File

@@ -40,6 +40,13 @@ func ProcessDWBG9FB2Request(ctx context.Context, params []byte, deps *processors
return nil, errors.Join(processors.ErrSystem, err)
}
if respMap, ok := resp.Data.(map[string]interface{}); ok {
delete(respMap, "reportUrl")
if resultMap, ok := respMap["result"].(map[string]interface{}); ok {
delete(resultMap, "reportUrl")
}
}
respBytes, err := json.Marshal(resp.Data)
if err != nil {
return nil, errors.Join(processors.ErrSystem, err)

View File

@@ -40,6 +40,13 @@ func ProcessDWBG9FB3Request(ctx context.Context, params []byte, deps *processors
return nil, errors.Join(processors.ErrSystem, err)
}
if respMap, ok := resp.Data.(map[string]interface{}); ok {
delete(respMap, "reportUrl")
if resultMap, ok := respMap["result"].(map[string]interface{}); ok {
delete(resultMap, "reportUrl")
}
}
respBytes, err := json.Marshal(resp.Data)
if err != nil {
return nil, errors.Join(processors.ErrSystem, err)