Commit edc4b797 authored by leitao.zhang's avatar leitao.zhang

build

parent 800f3f8a
......@@ -284,7 +284,9 @@ func FiledFilter(proxyData model.ProxyData, respbody []byte) []byte {
fields = dataconvertutil.GetResponseField(proxyData.ResFields)
_, arrmodel := dataconvertutil.ConvertJson(fields)
realData := make(map[string]interface{})
json.Unmarshal(respbody, &realData)
if err := json.Unmarshal(respbody, &realData); err != nil {
return respbody
}
if arrmodel != nil && len(arrmodel) != 0 && len(realData) != 0 {
bytes, _ := json.Marshal(Change(arrmodel[0], realData))
return bytes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment