Authored by 郭成尧

'singleApi'

'use strict';
const api = global.yoho.API;
const serviceAPI = global.yoho.ServiceAPI;
const favApi = global.yoho.FavAPI;
const singleAPI = global.yoho.SingleAPI;
const Promise = require('bluebird');
const helpers = global.yoho.helpers;
... ... @@ -47,7 +47,7 @@ const _getInfoNumData = (uid) => {
method: 'app.address.gethidden' // 用户地址的数据
}, {
code: 200
}), favApi.get('brower', {
}), singleAPI.get('brower', {
method: 'app.favorite.getFavoriteCount', // 获取用户收藏商品总数
uid: uid
}, {
... ...
... ... @@ -23,7 +23,7 @@ module.exports = {
api: 'http://dev-api.yohops.com:9999/',
service: 'http://dev-service.yohops.com:9999/',
favApi: 'http://192.168.102.31:8092/'
singleApi: 'http://192.168.102.31:8092/'
},
subDomains: {
host: '.m.yohoblk.com',
... ... @@ -76,7 +76,7 @@ if (isProduction) {
domains: {
api: 'http://api.yoho.yohoops.org/',
service: 'http://service.yoho.yohoops.org/',
favApi: 'http://api_single.yoho.cn/'
singleApi: 'http://api_single.yoho.cn/'
},
memcache: {
master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
... ... @@ -97,7 +97,7 @@ if (isProduction) {
api: 'http://api-test1.yohops.com:9999/',
service: 'http://service-test1.yohops.com:9999/',
favApi: 'http://192.168.102.31:8092/'
singleApi: 'http://192.168.102.31:8092/'
},
memcache: {
master: ['127.0.0.1:12111'],
... ...