Authored by hf

code review by fei.hong: do add couponxinshili huodong

@@ -18,17 +18,17 @@ class Yohobuy @@ -18,17 +18,17 @@ class Yohobuy
18 { 18 {
19 /* 正式环境 */ 19 /* 正式环境 */
20 // php API 20 // php API
21 - const API_URL = 'http://api2.open.yohobuy.com/';  
22 - const API_URL2 = 'http://api.open.yohobuy.com/';  
23 - const SERVICE_URL = 'http://service.api.yohobuy.com/';  
24 - const YOHOBUY_URL = 'http://www.yohobuy.com/'; 21 +// const API_URL = 'http://api2.open.yohobuy.com/';
  22 +// const API_URL2 = 'http://api.open.yohobuy.com/';
  23 +// const SERVICE_URL = 'http://service.api.yohobuy.com/';
  24 +// const YOHOBUY_URL = 'http://www.yohobuy.com/';
25 25
26 //java API 26 //java API
27 -// const API_URL = 'http://apih5.yoho.cn/';  
28 -// const API_URL2 = 'http://apih5.yoho.cn/';  
29 -// const SERVICE_URL = 'http://serviceh5.yoho.cn/';  
30 -// const YOHOBUY_URL = 'http://www.yohobuy.com/';  
31 -// const API_OLD = 'http://api2.open.yohobuy.com/'; 27 + const API_URL = 'http://apih5.yoho.cn/';
  28 + const API_URL2 = 'http://apih5.yoho.cn/';
  29 + const SERVICE_URL = 'http://serviceh5.yoho.cn/';
  30 + const YOHOBUY_URL = 'http://www.yohobuy.com/';
  31 + const API_OLD = 'http://api2.open.yohobuy.com/';
32 32
33 /* 测试环境 */ 33 /* 测试环境 */
34 // const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/' 34 // const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
@@ -30,8 +30,8 @@ class SearchData @@ -30,8 +30,8 @@ class SearchData
30 switch (APPLICATION_ENV) { 30 switch (APPLICATION_ENV) {
31 case 'production': 31 case 'production':
32 case 'release': 32 case 'release':
33 - return 'http://search.yoho.cn/yohosearch/search.json';  
34 - //return 'http://101.201.178.220/yohosearch/search.json'; //return 'http://100.98.132.63/yohosearch/search.json'; 33 + //return 'http://search.yoho.cn/yohosearch/search.json';
  34 + return 'http://101.201.178.220/yohosearch/search.json'; //return 'http://100.98.132.63/yohosearch/search.json';
35 case 'preview': 35 case 'preview':
36 return 'http://101.200.31.165/yohosearch/search.json'; 36 return 'http://101.200.31.165/yohosearch/search.json';
37 case 'test': 37 case 'test':
1 [memcached] 1 [memcached]
2 -master.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111  
3 -slave.hosts=172.31.22.1:12112,172.31.20.56:12112,172.31.31.146:12112  
4 -session.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111 2 +master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
  3 +slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
  4 +session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
5 5
6 [redis] 6 [redis]
7 servers.hosts=127.0.0.1:6379 7 servers.hosts=127.0.0.1:6379
1 [memcached] 1 [memcached]
2 -master.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111  
3 -slave.hosts=172.31.22.1:12112,172.31.20.56:12112,172.31.31.146:12112  
4 -session.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111 2 +master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
  3 +slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
  4 +session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
5 5
6 [redis] 6 [redis]
7 servers.hosts=127.0.0.1:6379 7 servers.hosts=127.0.0.1:6379
1 [memcached] 1 [memcached]
2 -master.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111  
3 -slave.hosts=172.31.22.1:12112,172.31.20.56:12112,172.31.31.146:12112  
4 -session.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111 2 +master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
  3 +slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
  4 +session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
5 5
6 [redis] 6 [redis]
7 servers.hosts=127.0.0.1:6379 7 servers.hosts=127.0.0.1:6379
1 [memcached] 1 [memcached]
2 -master.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111  
3 -slave.hosts=172.31.22.1:12112,172.31.20.56:12112,172.31.31.146:12112  
4 -session.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111 2 +master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
  3 +slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
  4 +session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
5 5
6 [redis] 6 [redis]
7 servers.hosts=127.0.0.1:6379 7 servers.hosts=127.0.0.1:6379