Authored by cailing

本来生活接口配置修改

@@ -24,16 +24,16 @@ class Yohobuy @@ -24,16 +24,16 @@ class Yohobuy
24 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 24 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
25 25
26 //java API 26 //java API
27 - const API_URL = 'http://api.yoho.yohoops.org/';  
28 - const API_URL2 = 'http://api.yoho.yohoops.org/';  
29 - const SERVICE_URL = 'http://service.yoho.yohoops.org/';  
30 - const YOHOBUY_URL = 'http://www.yohobuy.com/';  
31 - const API_OLD = 'http://api2.open.yohobuy.com/'; 27 +// const API_URL = 'http://api.yoho.yohoops.org/';
  28 +// const API_URL2 = 'http://api.yoho.yohoops.org/';
  29 +// const SERVICE_URL = 'http://service.yoho.yohoops.org/';
  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/'
35 const SERVICE_URL = 'http://testservice.yoho.cn:28077/'; 35 const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
36 - const YOHOBUY_URL = 'http://www.yohobuy.com/';*/ 36 + const YOHOBUY_URL = 'http://www.yohobuy.com/';
37 37
38 /* 预览环境 */ 38 /* 预览环境 */
39 // const API_URL = 'http://preapi.yoho.cn/'; 39 // const API_URL = 'http://preapi.yoho.cn/';
@@ -179,7 +179,7 @@ class Yohobuy @@ -179,7 +179,7 @@ class Yohobuy
179 } 179 }
180 } 180 }
181 $ch = curl_init($url); 181 $ch = curl_init($url);
182 - curl_setopt($ch, CURLOPT_HEADER, 0); 182 + curl_setopt($ch, CURLOPT_HEADER, 0) ;
183 curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); 183 curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
184 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 184 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
185 if ($useGzip) { 185 if ($useGzip) {