Showing
1 changed file
with
10 additions
and
10 deletions
@@ -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/' | ||
35 | - const SERVICE_URL = 'http://testservice.yoho.cn:28077/'; | ||
36 | - const YOHOBUY_URL = 'http://www.yohobuy.com/';*/ | 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/'; | ||
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/'; |
@@ -182,7 +182,7 @@ class Yohobuy | @@ -182,7 +182,7 @@ class Yohobuy | ||
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) { |
186 | curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); | 186 | curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); |
187 | } | 187 | } |
188 | if (!empty($userAgent)) { | 188 | if (!empty($userAgent)) { |
@@ -503,7 +503,7 @@ class Yohobuy | @@ -503,7 +503,7 @@ class Yohobuy | ||
503 | } | 503 | } |
504 | return $_SERVER['HTTP_USER_AGENT']; | 504 | return $_SERVER['HTTP_USER_AGENT']; |
505 | } | 505 | } |
506 | - | 506 | + |
507 | /** | 507 | /** |
508 | * 判断是否手机 | 508 | * 判断是否手机 |
509 | * @return bool | 509 | * @return bool |
-
Please register or login to post a comment