Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
ccbikai(👎🏻🍜)
8 years ago
Commit
509c2bd2d17433f7864eb043c354ad991ea818a2
2 parents
f6db0e54
641836f2
Merge branch 'hotfix/editAddress' into qCloud
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
apps/home/controllers/address.js
apps/home/controllers/address.js
View file @
509c2bd
...
...
@@ -114,7 +114,7 @@ exports.saveAddress = (req, res, next) => {
area_code
:
req
.
body
.
area_code
,
consignee
:
req
.
body
.
consignee
,
email
:
req
.
body
.
email
,
id
:
req
.
body
.
id
,
id
:
decodeURIComponent
(
req
.
body
.
id
)
,
mobile
:
req
.
body
.
mobile
,
zip_code
:
req
.
body
.
zip_code
}).
then
(
result
=>
{
...
...
@@ -130,7 +130,7 @@ exports.saveAddress = (req, res, next) => {
*/
exports
.
delAddress
=
(
req
,
res
,
next
)
=>
{
addressModel
.
delAddress
({
id
:
req
.
body
.
id
,
id
:
decodeURIComponent
(
req
.
body
.
id
)
,
uid
:
req
.
user
.
uid
}).
then
(
result
=>
{
res
.
json
(
result
);
...
...
Please
register
or
login
to post a comment