Authored by 梁志锋

修改为正式环境

@@ -23,18 +23,19 @@ class Yohobuy @@ -23,18 +23,19 @@ class Yohobuy
23 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 23 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
24 24
25 //java API 25 //java API
26 - // const API_URL = 'http://api.yoho.yohoops.org/';  
27 - // const API_URL2 = 'http://api.yoho.yohoops.org/';  
28 - // const SERVICE_URL = 'http://service.yoho.yohoops.org/';  
29 - // const YOHOBUY_URL = 'http://www.yohobuy.com/';  
30 - // const API_OLD = 'http://api2.open.yohobuy.com/';  
31 -  
32 - // 测试环境 */ 26 + const API_URL = 'http://api.yoho.yohoops.org/';
  27 + const API_URL2 = 'http://api.yoho.yohoops.org/';
  28 + const SERVICE_URL = 'http://service.yoho.yohoops.org/';
  29 + const YOHOBUY_URL = 'http://www.yohobuy.com/';
  30 + const API_OLD = 'http://api2.open.yohobuy.com/';
  31 +
  32 + // 测试环境
  33 + /*
33 // 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/'
34 - const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/' 35 + const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
35 // const API_URL = 'http://192.168.102.218:8080/gateway/'; 36 // const API_URL = 'http://192.168.102.218:8080/gateway/';
36 const SERVICE_URL = 'http://testservice.yoho.cn:28077/'; 37 const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
37 - const YOHOBUY_URL = 'http://www.yohobuy.com/'; 38 + const YOHOBUY_URL = 'http://www.yohobuy.com/';*/
38 39
39 /* 预览环境 */ 40 /* 预览环境 */
40 // const API_URL = 'http://preapi.yoho.cn/'; 41 // const API_URL = 'http://preapi.yoho.cn/';
@@ -183,7 +184,7 @@ class Yohobuy @@ -183,7 +184,7 @@ class Yohobuy
183 curl_setopt($ch, CURLOPT_HEADER, 0); 184 curl_setopt($ch, CURLOPT_HEADER, 0);
184 curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); 185 curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
185 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 186 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
186 - if ($useGzip) { 187 + if ($useGzip) {
187 curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); 188 curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
188 } 189 }
189 if (!empty($userAgent)) { 190 if (!empty($userAgent)) {
@@ -500,7 +501,7 @@ class Yohobuy @@ -500,7 +501,7 @@ class Yohobuy
500 } 501 }
501 return $_SERVER['HTTP_USER_AGENT']; 502 return $_SERVER['HTTP_USER_AGENT'];
502 } 503 }
503 - 504 +
504 /** 505 /**
505 * 判断是否手机 506 * 判断是否手机
506 * @return bool 507 * @return bool