...
|
...
|
@@ -7,9 +7,14 @@ const index = (req, res, next) => { |
|
|
let uid = req.user.uid;
|
|
|
let params = {
|
|
|
limit: req.query.limit || 50,
|
|
|
page: req.query.page || 1
|
|
|
page: req.query.page || 1,
|
|
|
|
|
|
};
|
|
|
|
|
|
if (req.query.union_type) {
|
|
|
params.union_type = req.query.union_type;
|
|
|
}
|
|
|
|
|
|
Model.canLogin(uid).then(canLogin => {
|
|
|
if (canLogin === 'N') {
|
|
|
return next();
|
...
|
...
|
|