...
|
...
|
@@ -5,11 +5,13 @@ |
|
|
*/
|
|
|
|
|
|
'use strict';
|
|
|
const utils = '../../../utils';
|
|
|
const mRoot = '../models';
|
|
|
const headerModel = require('../../../doraemon/models/header');
|
|
|
const searchModel = require(`${mRoot}/search`);
|
|
|
const _ = require('lodash');
|
|
|
const helpers = global.yoho.helpers;
|
|
|
const searchProcess = require(`${utils}/search-process`);
|
|
|
|
|
|
/**
|
|
|
* 搜索落地页
|
...
|
...
|
@@ -30,6 +32,7 @@ const list = (req, res, next) => { |
|
|
}
|
|
|
|
|
|
params.isApp = req.yoho.isApp;
|
|
|
params.physical_channel = req.yoho.channel && searchProcess.getChannelType(req.yoho.channel);
|
|
|
|
|
|
return searchModel.searchKeyActivity(params.query || '').then(activityResult => {
|
|
|
let activity = _.get(activityResult, 'urlobj.appUrl', '');
|
...
|
...
|
|