Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
94aefe6c2043cf67ae45768aeabf343beafe170f
1 parent
312c39b0
address return err
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
apps/me/models/address.js
apps/me/models/address.js
View file @
94aefe6
...
...
@@ -63,12 +63,10 @@ const addAddressData = (uid, address, areaCode, consignee, mobile, phone, init)
}).
then
(
result
=>
{
if
(
result
.
code
===
200
&&
init
)
{
return
setDefaultAddress
(
result
.
data
.
id
,
uid
).
then
(
defaultResult
=>
{
// 若设置默认成功,扩展result设置默认标志位为Y
if
(
defaultResult
.
code
===
200
)
{
return
Object
.
assign
(
result
.
data
,
{
is_default
:
'Y'
});
// 若设置默认成功,扩展result设置默认标志位为Y
result
.
data
.
is_default
=
'Y'
;
}
// 否则,返回原result
...
...
Please
register
or
login
to post a comment