f
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user