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
毕凯
8 years ago
Commit
7c9c6451e3b54d5c255d58ad34562ad4aef028cc
2 parents
a9b15d03
46612bfc
Merge branch 'feature/ticketRecode' into 'release/5.9'
未登录 See merge request
!700
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
apps/cart/controllers/ticketsConfirm.js
apps/cart/controllers/ticketsConfirm.js
View file @
7c9c645
...
...
@@ -56,9 +56,17 @@ const checkTickets = (req, res) => {
useYohoCoin
:
req
.
body
.
useYohoCoin
};
indexModel
.
checkTickets
(
params
).
then
(
result
=>
{
res
.
json
(
result
);
});
// 未登录
if
(
!
req
.
user
.
uid
)
{
return
res
.
json
({
code
:
401
,
redirect
:
'/signin.html'
});
}
else
{
indexModel
.
checkTickets
(
params
).
then
(
result
=>
{
res
.
json
(
result
);
});
}
};
module
.
exports
=
{
...
...
Please
register
or
login
to post a comment