...
|
...
|
@@ -22,12 +22,12 @@ class Yohobuy |
|
|
// const API_URL2 = 'http://api.open.yohobuy.com/';
|
|
|
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
|
|
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
|
|
|
|
|
|
|
|
// const API_URL = 'http://apih5.yoho.cn/';
|
|
|
// const API_URL2 = 'http://apih5.yoho.cn/';
|
|
|
// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
|
|
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
|
|
// const API_OLD = 'http://api2.open.yohobuy.com/';
|
|
|
// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
|
|
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
|
|
// const API_OLD = 'http://api2.open.yohobuy.com/';
|
|
|
|
|
|
// /* 测试环境 */
|
|
|
// const API_URL = 'http://192.168.102.205:8080/gateway/'; // 先临时使用网关
|
...
|
...
|
@@ -45,7 +45,7 @@ class Yohobuy |
|
|
|
|
|
/* PC重构地址 */
|
|
|
// const API_URL = 'http://test.open.yohobuy.com/';
|
|
|
// const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
|
|
|
// const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
|
|
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
|
|
// const API_OLD = 'http://api2.open.yohobuy.com/';
|
|
|
|
...
|
...
|
@@ -72,9 +72,9 @@ class Yohobuy |
|
|
}
|
|
|
// 苹果IPAD
|
|
|
elseif (strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
|
|
|
|
|
|
|
|
|
return 'ipad';
|
|
|
}
|
|
|
}
|
|
|
elseif (stristr($_SERVER['HTTP_USER_AGENT'], 'android')) {
|
|
|
return 'android';
|
|
|
}
|
...
|
...
|
@@ -179,7 +179,7 @@ class Yohobuy |
|
|
if (!$returnJson && !empty($result)) {
|
|
|
$result = json_decode($result, true);
|
|
|
}
|
|
|
|
|
|
|
|
|
curl_close($ch);
|
|
|
$data = array();
|
|
|
|
...
|
...
|
|