Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
2017-04-01 16:52:28 +0800
Commit
59026fcda9bbd2a97563c314a04b96fa9f0467eb
1 parent
673fa05d
for in hasOwnProperty
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
apps/shop/controllers/shop.js
apps/shop/controllers/shop.js
View file @
59026fc
...
...
@@ -92,7 +92,7 @@ const applysave = (req, res, next) => {
try
{
for
(
let
key
in
req
.
body
)
{
if
(
req
.
body
[
key
]
)
{
if
(
req
.
body
.
hasOwnProperty
(
key
)
)
{
key
=
key
+
''
;
param
[
_
.
camelCase
(
key
)]
=
req
.
body
[
key
];
}
...
...
Please
register
or
login
to post a comment