Authored by 李奇

fixed:配置添加

@@ -9,8 +9,8 @@ @@ -9,8 +9,8 @@
9 9
10 let config = require('../../../config/common'); 10 let config = require('../../../config/common');
11 11
12 -let api = new global.yoho.ApiBase(config.domains.bjIm, {  
13 - name: 'bjIm', 12 +let api = new global.yoho.ApiBase(config.domains.imCs, {
  13 + name: 'imCs',
14 cache: global.yoho.cache, 14 cache: global.yoho.cache,
15 useCache: false 15 useCache: false
16 }); 16 });
@@ -28,9 +28,9 @@ module.exports = { @@ -28,9 +28,9 @@ module.exports = {
28 // service: 'http://dev-service.yohops.com:9999/', 28 // service: 'http://dev-service.yohops.com:9999/',
29 29
30 search: 'http://192.168.102.216:8080/yohosearch/', 30 search: 'http://192.168.102.216:8080/yohosearch/',
31 - bjSocket: 'ws://socket.yohobuy.com:10240',  
32 - bjIm: 'http://im.yohobuy.com/api',  
33 - bjImUploadImg: 'http://im.yohobuy.com/server' 31 + imSocket: 'ws://socket.yohobuy.com:10240',
  32 + imCs: 'http://im.yohobuy.com/api',
  33 + imServer: 'http://im.yohobuy.com/server'
34 }, 34 },
35 subDomains: { 35 subDomains: {
36 host: '.yohobuy.com', 36 host: '.yohobuy.com',
@@ -119,7 +119,10 @@ if (isProduction) { @@ -119,7 +119,10 @@ if (isProduction) {
119 domains: { 119 domains: {
120 api: 'http://api.yoho.yohoops.org/', 120 api: 'http://api.yoho.yohoops.org/',
121 service: 'http://service.yoho.yohoops.org/', 121 service: 'http://service.yoho.yohoops.org/',
122 - search: 'http://search.yohoops.org/yohosearch/' 122 + search: 'http://search.yohoops.org/yohosearch/',
  123 + imSocket: 'ws://imsocket.yohobuy.com',
  124 + imCs: 'http://imhttp.yohobuy.com/api',
  125 + imServer: 'http://imhttp.yohobuy.com/server'
123 }, 126 },
124 memcache: { 127 memcache: {
125 master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'], 128 master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
@@ -147,9 +150,9 @@ if (isProduction) { @@ -147,9 +150,9 @@ if (isProduction) {
147 api: process.env.TEST_API || 'http://testapi.yoho.cn:28078/', 150 api: process.env.TEST_API || 'http://testapi.yoho.cn:28078/',
148 service: process.env.TEST_SERVICE || 'http://testservice.yoho.cn:28077/', 151 service: process.env.TEST_SERVICE || 'http://testservice.yoho.cn:28077/',
149 search: process.env.TEST_SEARCH || 'http://192.168.102.216:8080/yohosearch/', 152 search: process.env.TEST_SEARCH || 'http://192.168.102.216:8080/yohosearch/',
150 - bjSocket: 'ws://socket.yohobuy.com:10240',  
151 - bjIm: 'http://im.yohobuy.com/api',  
152 - bjImUploadImg: 'http://im.yohobuy.com/server' 153 + imSocket: 'ws://socket.yohobuy.com:10240',
  154 + imCs: 'http://im.yohobuy.com/api',
  155 + imServer: 'http://im.yohobuy.com/server'
153 }, 156 },
154 useOneapm: true, 157 useOneapm: true,
155 useCache: true, 158 useCache: true,
@@ -74,7 +74,7 @@ originConf = JSON.parse(JSON.stringify(socketConf)); @@ -74,7 +74,7 @@ originConf = JSON.parse(JSON.stringify(socketConf));
74 // url前缀添加 74 // url前缀添加
75 for (key in urls) { 75 for (key in urls) {
76 if (urls.hasOwnProperty(key)) { 76 if (urls.hasOwnProperty(key)) {
77 - urls[key] = common.domains.bjIm + urls[key]; 77 + urls[key] = common.domains.imCs + urls[key];
78 } 78 }
79 } 79 }
80 80
@@ -913,7 +913,7 @@ $sendImgInput.fileupload({ @@ -913,7 +913,7 @@ $sendImgInput.fileupload({
913 dataType: 'json', 913 dataType: 'json',
914 acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i, 914 acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
915 maxFileSize: 5000000, // 5M 915 maxFileSize: 5000000, // 5M
916 - url: common.domains.bjImUploadImg + '/fileManage/uploadFile', 916 + url: common.domains.imServer + '/fileManage/uploadFile',
917 progressall: function(e, data) { 917 progressall: function(e, data) {
918 var progress = parseInt(data.loaded / data.total * 100, 10); 918 var progress = parseInt(data.loaded / data.total * 100, 10);
919 919
@@ -1149,7 +1149,7 @@ $panelMainBody.scroll(function() { @@ -1149,7 +1149,7 @@ $panelMainBody.scroll(function() {
1149 // onMessage: function(e) { 1149 // onMessage: function(e) {
1150 // var received = JSON.parse(e.data); 1150 // var received = JSON.parse(e.data);
1151 // 1151 //
1152 -// cmEntity.conversationId = received.newConversationId !== 0 ? 1152 +// socketConfCM.conversationId = received.newConversationId !== 0 ?
1153 // received.newConversationId : 1153 // received.newConversationId :
1154 // received.conversationId; 1154 // received.conversationId;
1155 // 1155 //
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 var common = require('../../../config/common'); 8 var common = require('../../../config/common');
9 9
10 var config = { 10 var config = {
11 - servers: [common.domains.bjSocket], 11 + servers: [common.domains.imSocket],
12 defaultUserHead: '/img/service/default-thumb.png', 12 defaultUserHead: '/img/service/default-thumb.png',
13 recType: { 13 recType: {
14 ENTER: 1, // 用户进入 14 ENTER: 1, // 用户进入