|
@@ -22,8 +22,8 @@ class Yohobuy |
|
@@ -22,8 +22,8 @@ class Yohobuy |
22
|
// const API_URL2 = 'http://api.open.yohobuy.com/';
|
22
|
// const API_URL2 = 'http://api.open.yohobuy.com/';
|
23
|
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
|
23
|
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
|
24
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
24
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
25
|
-
|
|
|
26
|
- // const API_URL = 'http://apih5.yoho.cn/';
|
25
|
+
|
|
|
26
|
+// const API_URL = 'http://apih5.yoho.cn/';
|
27
|
// const API_URL2 = 'http://apih5.yoho.cn/';
|
27
|
// const API_URL2 = 'http://apih5.yoho.cn/';
|
28
|
// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
|
28
|
// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
|
29
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
29
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
|
@@ -45,7 +45,7 @@ class Yohobuy |
|
@@ -45,7 +45,7 @@ class Yohobuy |
45
|
|
45
|
|
46
|
/* PC重构地址 */
|
46
|
/* PC重构地址 */
|
47
|
// const API_URL = 'http://test.open.yohobuy.com/';
|
47
|
// const API_URL = 'http://test.open.yohobuy.com/';
|
48
|
-// const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
|
48
|
+// const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
|
49
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
49
|
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
|
50
|
// const API_OLD = 'http://api2.open.yohobuy.com/';
|
50
|
// const API_OLD = 'http://api2.open.yohobuy.com/';
|
51
|
|
51
|
|
|
@@ -72,9 +72,9 @@ class Yohobuy |
|
@@ -72,9 +72,9 @@ class Yohobuy |
72
|
}
|
72
|
}
|
73
|
// 苹果IPAD
|
73
|
// 苹果IPAD
|
74
|
elseif (strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
|
74
|
elseif (strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
|
75
|
-
|
75
|
+
|
76
|
return 'ipad';
|
76
|
return 'ipad';
|
77
|
- }
|
77
|
+ }
|
78
|
elseif (stristr($_SERVER['HTTP_USER_AGENT'], 'android')) {
|
78
|
elseif (stristr($_SERVER['HTTP_USER_AGENT'], 'android')) {
|
79
|
return 'android';
|
79
|
return 'android';
|
80
|
}
|
80
|
}
|
|
@@ -179,7 +179,7 @@ class Yohobuy |
|
@@ -179,7 +179,7 @@ class Yohobuy |
179
|
if (!$returnJson && !empty($result)) {
|
179
|
if (!$returnJson && !empty($result)) {
|
180
|
$result = json_decode($result, true);
|
180
|
$result = json_decode($result, true);
|
181
|
}
|
181
|
}
|
182
|
-
|
182
|
+
|
183
|
curl_close($ch);
|
183
|
curl_close($ch);
|
184
|
$data = array();
|
184
|
$data = array();
|
185
|
|
185
|
|