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
wenjiekong
2016-08-25 11:20:55 +0800
Commit
e1487f298e643956dc1956c3aa599af09ddeec9e
1 parent
90eb2633
初始时,判断用户是否是学生
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
apps/product/controllers/students.js
apps/product/controllers/students.js
View file @
e1487f2
...
...
@@ -26,7 +26,7 @@ exports.index = (req, res, next) => {
if
(
'isStudent'
in
req
.
user
)
{
result
.
realData
.
verifyRusult
=
{
isStudent
:
req
.
user
.
isStudent
===
1
?
true
:
false
};
}
res
.
render
(
'students/index'
,
result
);
}).
catch
(
next
);
...
...
Please
register
or
login
to post a comment