feat: 修复返回值解析问题
This commit is contained in:
@ -146,8 +146,11 @@ func (r *Response) fillResponseBody(reqCfg *define.Request, response *define.Res
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_ = serialize.JSON.UnmarshalWithNumber([]byte(response.Data), &response.Body)
|
||||||
|
if nil != reqCfg.DataReceiver {
|
||||||
_ = serialize.JSON.UnmarshalWithNumber([]byte(response.Data), reqCfg.DataReceiver)
|
_ = serialize.JSON.UnmarshalWithNumber([]byte(response.Data), reqCfg.DataReceiver)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
response.ExtendData = map[string]string{}
|
response.ExtendData = map[string]string{}
|
||||||
gjson.Parse(response.Data).ForEach(func(key, value gjson.Result) bool {
|
gjson.Parse(response.Data).ForEach(func(key, value gjson.Result) bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user