...
|
...
|
@@ -43,24 +43,8 @@ exports.serverError = () => { |
|
|
|
|
|
if (req.xhr) {
|
|
|
return res.status(401).json(err);
|
|
|
} else if (req.yoho.isApp) {
|
|
|
if (err.lowVersion) {
|
|
|
return res.render('error/app-auth', {
|
|
|
module: 'common',
|
|
|
page: 'app-update',
|
|
|
localCss: true,
|
|
|
message: err.message
|
|
|
});
|
|
|
}
|
|
|
return res.render('error/app-auth', {
|
|
|
module: 'common',
|
|
|
page: 'app-redirect-login',
|
|
|
message: '验证失败,请登录',
|
|
|
localCss: true,
|
|
|
refer: err.refer
|
|
|
});
|
|
|
} else {
|
|
|
return res.redirect(helpers.urlFormat('/signin.html', {
|
|
|
return res.redirect(helpers.urlFormat('/passport/login', {
|
|
|
refer: req.originalUrl
|
|
|
}));
|
|
|
}
|
...
|
...
|
|