Authored by yyq

跳转uri编码

... ... @@ -27,6 +27,7 @@ exports.index = (req, res, next) => {
search.getKeyActivity(params.query).then(activityUrl => {
if (activityUrl) {
activityUrl = encodeURI(activityUrl);
res.redirect(activityUrl);
return;
}
... ...
... ... @@ -15,7 +15,7 @@ const needParams = ['query', 'msort', 'misort'];
exports.getKeyActivity = (query) => {
return searchApi.getKeyActivityAsync(query).then(result => {
return _.get(result, 'data.data.urlobj.appUrl', '');
return _.get(result, 'data.urlobj.appUrl', '');
});
};
... ...