Authored by 郭成尧

Merge branch 'master' into feature/valida

... ... @@ -73,7 +73,6 @@ app.use(global.yoho.hbs({
helpers: _.assign(global.yoho.helpers, require('./utils/helpers'))
}));
app.use(global.yoho.middleware());
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
... ...
... ... @@ -231,6 +231,7 @@ const category = (req, res, next) => {
order: '0',
page: 1,
limit: 12,
isApp: params.app_version
}, params);
if (uid) {
... ...
... ... @@ -13,8 +13,8 @@ const domains = {
liveApi: 'http://testapi.live.yohops.com:9999/',
singleApi: 'http://api-test3.yohops.com:9999/',
api: 'http://api-test2.yohops.com:9999/',
service: 'http://service-test2.yohops.com:9999/',
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
// liveApi: 'http://api.live.yoho.cn/',
// singleApi: 'http://single.yoho.cn/',
... ... @@ -25,7 +25,7 @@ const domains = {
module.exports = {
app: 'h5',
appVersion: '5.5.1', // 调用api的版本
appVersion: '5.5.2', // 调用api的版本
port: 6001,
siteUrl: '//m.yohobuy.com',
assetUrl: '//127.0.0.1:5001',
... ... @@ -67,11 +67,6 @@ module.exports = {
handleExceptions: true,
maxFiles: 7
},
udp: { // send by udp
measurement: 'yohobuy_wap_node_log',
level: 'error', // logger level
port: '4444' // influxdb port
},
console: {
level: 'info',
colorize: 'all',
... ...
... ... @@ -50,7 +50,7 @@
"xml2js": "^0.4.17",
"yoho-express-session": "^2.0.0",
"yoho-md5": "^2.0.0",
"yoho-node-lib": "=0.2.11",
"yoho-node-lib": "=0.2.16",
"yoho-zookeeper": "^1.0.8"
},
"devDependencies": {
... ...
... ... @@ -102,6 +102,11 @@ exports.processProductList = (list, options) => {
return;
}
// H5 暂时不支持全球购商品,先过滤掉 2017.04.09
if (product.is_global === 'Y') {
return;
}
// 商品信息有问题,则不显示
if (!(
(product.product_id && _.get(product, 'goods_list.length', 0)) || product.recommend_type
... ...