Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-meshproxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-meshproxy
Commits
edc4b797
Commit
edc4b797
authored
Dec 20, 2020
by
leitao.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build
parent
800f3f8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/service/field.go
src/service/field.go
+3
-1
No files found.
src/service/field.go
View file @
edc4b797
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment