Authored by yyq

跳转uri编码

@@ -27,6 +27,7 @@ exports.index = (req, res, next) => { @@ -27,6 +27,7 @@ exports.index = (req, res, next) => {
27 27
28 search.getKeyActivity(params.query).then(activityUrl => { 28 search.getKeyActivity(params.query).then(activityUrl => {
29 if (activityUrl) { 29 if (activityUrl) {
  30 + activityUrl = encodeURI(activityUrl);
30 res.redirect(activityUrl); 31 res.redirect(activityUrl);
31 return; 32 return;
32 } 33 }
@@ -15,7 +15,7 @@ const needParams = ['query', 'msort', 'misort']; @@ -15,7 +15,7 @@ const needParams = ['query', 'msort', 'misort'];
15 15
16 exports.getKeyActivity = (query) => { 16 exports.getKeyActivity = (query) => {
17 return searchApi.getKeyActivityAsync(query).then(result => { 17 return searchApi.getKeyActivityAsync(query).then(result => {
18 - return _.get(result, 'data.data.urlobj.appUrl', ''); 18 + return _.get(result, 'data.urlobj.appUrl', '');
19 }); 19 });
20 }; 20 };
21 21