Authored by 郭成尧

'singleApichange'

@@ -7,8 +7,8 @@ @@ -7,8 +7,8 @@
7 7
8 'use strict'; 8 'use strict';
9 9
10 -const favApi = global.yoho.FavAPI;  
11 const api = global.yoho.API; 10 const api = global.yoho.API;
  11 +const singleAPI = global.yoho.SingleAPI;
12 const helpers = global.yoho.helpers; 12 const helpers = global.yoho.helpers;
13 const camelCase = global.yoho.camelCase; 13 const camelCase = global.yoho.camelCase;
14 14
@@ -37,7 +37,7 @@ const _noticeData = () => { @@ -37,7 +37,7 @@ const _noticeData = () => {
37 * @returns {*|Promise.<TResult>} 37 * @returns {*|Promise.<TResult>}
38 */ 38 */
39 const _favoriteData = (params) => { 39 const _favoriteData = (params) => {
40 - return favApi.get('brower', { 40 + return singleAPI.get('brower', {
41 method: 'app.favorite.getFavoriteCount', 41 method: 'app.favorite.getFavoriteCount',
42 uid: params.uid 42 uid: params.uid
43 }, {code: 200}); 43 }, {code: 200});
@@ -20,8 +20,7 @@ module.exports = { @@ -20,8 +20,7 @@ module.exports = {
20 20
21 api: 'http://testapi.yoho.cn:28078/', 21 api: 'http://testapi.yoho.cn:28078/',
22 service: 'http://testservice.yoho.cn:28077/', 22 service: 'http://testservice.yoho.cn:28077/',
23 -  
24 - favApi: 'http://192.168.102.31:8092/' 23 + singleApi: 'http://192.168.102.31:8092/'
25 }, 24 },
26 subDomains: { 25 subDomains: {
27 host: '.m.yohobuy.com', 26 host: '.m.yohobuy.com',
@@ -80,7 +79,8 @@ if (isProduction) { @@ -80,7 +79,8 @@ if (isProduction) {
80 appName: 'm.yohobuy.com', 79 appName: 'm.yohobuy.com',
81 domains: { 80 domains: {
82 api: 'http://api.yoho.yohoops.org/', 81 api: 'http://api.yoho.yohoops.org/',
83 - service: 'http://service.yoho.yohoops.org/' 82 + service: 'http://service.yoho.yohoops.org/',
  83 + singleApi: 'http://api_single.yoho.cn/'
84 }, 84 },
85 memcache: { 85 memcache: {
86 master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111'], 86 master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111'],
@@ -97,7 +97,8 @@ if (isProduction) { @@ -97,7 +97,8 @@ if (isProduction) {
97 appName: 'm.yohobuy.com for test', 97 appName: 'm.yohobuy.com for test',
98 domains: { 98 domains: {
99 api: 'http://testapi.yoho.cn:28078/', 99 api: 'http://testapi.yoho.cn:28078/',
100 - service: 'http://testservice.yoho.cn:28077/' 100 + service: 'http://testservice.yoho.cn:28077/',
  101 + singleApi: 'http://192.168.102.31:8092/'
101 }, 102 },
102 memcache: { 103 memcache: {
103 master: ['127.0.0.1:12111'], 104 master: ['127.0.0.1:12111'],