Merge branch 'master' into release/4.8
Showing
1 changed file
with
2 additions
and
37 deletions
@@ -44,21 +44,13 @@ class Yohobuy | @@ -44,21 +44,13 @@ class Yohobuy | ||
44 | // const SERVICE_URL = 'http://preservice.yoho.cn/'; | 44 | // const SERVICE_URL = 'http://preservice.yoho.cn/'; |
45 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; | 45 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; |
46 | // const API_OLD = 'http://api2.open.yohobuy.com/'; | 46 | // const API_OLD = 'http://api2.open.yohobuy.com/'; |
47 | -<<<<<<< HEAD | ||
48 | 47 | ||
49 | -======= | ||
50 | - | ||
51 | ->>>>>>> master | ||
52 | /** | 48 | /** |
53 | * 登录老接口Api配置 | 49 | * 登录老接口Api配置 |
54 | */ | 50 | */ |
55 | const API_LOGIN_URL = 'http://api.open.yohobuy.com'; | 51 | const API_LOGIN_URL = 'http://api.open.yohobuy.com'; |
56 | const API_LOGIN_URL_TEST = 'http://test.open.yohobuy.com'; | 52 | const API_LOGIN_URL_TEST = 'http://test.open.yohobuy.com'; |
57 | -<<<<<<< HEAD | ||
58 | 53 | ||
59 | -======= | ||
60 | - | ||
61 | ->>>>>>> master | ||
62 | /** | 54 | /** |
63 | * 私钥列表 | 55 | * 私钥列表 |
64 | * | 56 | * |
@@ -71,11 +63,6 @@ class Yohobuy | @@ -71,11 +63,6 @@ class Yohobuy | ||
71 | 'web' => '0ed29744ed318fd28d2c07985d3ba633', | 63 | 'web' => '0ed29744ed318fd28d2c07985d3ba633', |
72 | 'h5' => 'fd4ad5fcfa0de589ef238c0e7331b585', | 64 | 'h5' => 'fd4ad5fcfa0de589ef238c0e7331b585', |
73 | ); | 65 | ); |
74 | -<<<<<<< HEAD | ||
75 | - | ||
76 | -======= | ||
77 | - | ||
78 | ->>>>>>> master | ||
79 | 66 | ||
80 | 67 | ||
81 | /** | 68 | /** |
@@ -89,11 +76,7 @@ class Yohobuy | @@ -89,11 +76,7 @@ class Yohobuy | ||
89 | else { | 76 | else { |
90 | return 'web'; | 77 | return 'web'; |
91 | } | 78 | } |
92 | -<<<<<<< HEAD | ||
93 | 79 | ||
94 | -======= | ||
95 | - | ||
96 | ->>>>>>> master | ||
97 | // // 苹果设备 | 80 | // // 苹果设备 |
98 | // if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone')) { | 81 | // if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone')) { |
99 | // return 'iphone'; | 82 | // return 'iphone'; |
@@ -203,11 +186,8 @@ class Yohobuy | @@ -203,11 +186,8 @@ class Yohobuy | ||
203 | curl_setopt($ch, CURLOPT_HEADER, 0); | 186 | curl_setopt($ch, CURLOPT_HEADER, 0); |
204 | curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); | 187 | curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); |
205 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | 188 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
206 | -<<<<<<< HEAD | ||
207 | - if ($useGzip) { | ||
208 | -======= | 189 | + |
209 | if ($useGzip) { | 190 | if ($useGzip) { |
210 | ->>>>>>> master | ||
211 | curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); | 191 | curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); |
212 | } | 192 | } |
213 | if (!empty($userAgent)) { | 193 | if (!empty($userAgent)) { |
@@ -250,11 +230,7 @@ class Yohobuy | @@ -250,11 +230,7 @@ class Yohobuy | ||
250 | public static function post($url, $data = array(), $returnJson = false, $timeout = 10, $header = array(), $cookie = array()) | 230 | public static function post($url, $data = array(), $returnJson = false, $timeout = 10, $header = array(), $cookie = array()) |
251 | { | 231 | { |
252 | $ch = curl_init($url); | 232 | $ch = curl_init($url); |
253 | -<<<<<<< HEAD | ||
254 | 233 | ||
255 | -======= | ||
256 | - | ||
257 | ->>>>>>> master | ||
258 | curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); | 234 | curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); |
259 | if (!empty($header)) { | 235 | if (!empty($header)) { |
260 | curl_setopt($ch, CURLOPT_HTTPHEADER, $header); | 236 | curl_setopt($ch, CURLOPT_HTTPHEADER, $header); |
@@ -376,11 +352,8 @@ class Yohobuy | @@ -376,11 +352,8 @@ class Yohobuy | ||
376 | continue; | 352 | continue; |
377 | } | 353 | } |
378 | $result[$name] = $response['data']; | 354 | $result[$name] = $response['data']; |
379 | -<<<<<<< HEAD | 355 | + |
380 | } | 356 | } |
381 | -======= | ||
382 | - } | ||
383 | ->>>>>>> master | ||
384 | else { | 357 | else { |
385 | $result[$name] = $response; | 358 | $result[$name] = $response; |
386 | } | 359 | } |
@@ -524,11 +497,7 @@ class Yohobuy | @@ -524,11 +497,7 @@ class Yohobuy | ||
524 | 497 | ||
525 | return $result; | 498 | return $result; |
526 | } | 499 | } |
527 | -<<<<<<< HEAD | ||
528 | 500 | ||
529 | -======= | ||
530 | - | ||
531 | ->>>>>>> master | ||
532 | /** | 501 | /** |
533 | * 获取用户User-Agent | 502 | * 获取用户User-Agent |
534 | * @return bool | 503 | * @return bool |
@@ -540,11 +509,7 @@ class Yohobuy | @@ -540,11 +509,7 @@ class Yohobuy | ||
540 | } | 509 | } |
541 | return $_SERVER['HTTP_USER_AGENT']; | 510 | return $_SERVER['HTTP_USER_AGENT']; |
542 | } | 511 | } |
543 | -<<<<<<< HEAD | ||
544 | 512 | ||
545 | -======= | ||
546 | - | ||
547 | ->>>>>>> master | ||
548 | /** | 513 | /** |
549 | * 判断是否手机 | 514 | * 判断是否手机 |
550 | * @return bool | 515 | * @return bool |
-
Please register or login to post a comment