Authored by 陈峰

Merge branch 'feature/package' into release/5.5

... ... @@ -13,7 +13,7 @@ const bundleModel = require(`${mRoot}/bundle`);
* @param next
*/
exports.detail = (req, res, next) => {
bundleModel.detail(req.query).then(result => {
bundleModel.detail(req.query, req.yoho.isApp).then(result => {
if (result.bundleDatas.length <= 3) {
result.any = true;
}
... ...
... ... @@ -26,7 +26,7 @@ const getBundleBySkn = (productSkn) => {
* @param params
* @returns {*}
*/
const detail = (params) => {
const detail = (params, isApp) => {
if (!params.skn && !params.bundle_skn) {
return Promise.resolve({});
}
... ... @@ -42,7 +42,7 @@ const detail = (params) => {
return {
selected: index === bundleIndex,
title: _.get(bundle, 'bundleInfo.tabName') || '',
href: helpers.urlFormat('/product/bundle/detail', {skn: params.skn, index: ++index}),
href: helpers.urlFormat('/product/bundle/detail', {skn: params.skn, index: ++index, app_version: isApp}),
};
}),
shareInfo: {
... ...