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
htoooth
2017-02-17 17:06:32 +0800
Commit
5f3c9288a791b78110371e6e57238a97333a2ee3
1 parent
c64839a3
fix api
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
apps/home/models/new-user-api.js
apps/home/models/new-user-service.js
apps/home/models/new-user-api.js
View file @
5f3c928
'use strict'
;
const
getOrdersList
=
(
uid
)
=>
{
const
api
=
global
.
yoho
.
api
;
exports
.
getUserOrders
=
(
uid
)
=>
{
return
api
.
get
(
''
,
{
method
:
'app.SpaceOrders.get'
,
uid
:
uid
,
type
:
5
,
page
:
1
,
limit
:
10
});
};
module
.
exports
=
{
getOrdersList
};
...
...
apps/home/models/new-user-service.js
View file @
5f3c928
...
...
@@ -3,7 +3,13 @@
const
api
=
require
(
'../models/new-user-api'
);
const
check
=
(
uid
)
=>
{
return
api
.
getUserOrders
(
uid
).
then
((
result
)
=>
{
if
(
result
.
code
!==
200
)
{
return
{};
}
});
};
module
.
exports
=
{
...
...
Please
register
or
login
to post a comment