Merge remote-tracking branch 'origin/develop' into develop
Showing
7 changed files
with
24 additions
and
24 deletions
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | 11 | ||
12 | namespace Api; | 12 | namespace Api; |
13 | 13 | ||
14 | -use Plugin\Cache; | 14 | +use WebPlugin\Cache; |
15 | class Yohobuy | 15 | class Yohobuy |
16 | { | 16 | { |
17 | /* 正式环境 */ | 17 | /* 正式环境 */ |
@@ -22,21 +22,21 @@ class Yohobuy | @@ -22,21 +22,21 @@ class Yohobuy | ||
22 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; | 22 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; |
23 | 23 | ||
24 | //java API | 24 | //java API |
25 | - const API_URL = 'http://api.yoho.yohoops.org/';// | ||
26 | - const API_URL2 = 'http://api.yoho.yohoops.org/';// | ||
27 | - const SERVICE_URL = 'http://service.yoho.yohoops.org/'; | ||
28 | - const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
29 | - const API_OLD = 'http://api2.open.yohobuy.com/'; | ||
30 | - // 支付回调地址 | ||
31 | - const SERVICE_NOTIFY = 'http://service.yoho.cn/'; | ||
32 | - | 25 | + // const API_URL = 'http://api.yoho.yohoops.org/';// |
26 | + // const API_URL2 = 'http://api.yoho.yohoops.org/';// | ||
27 | + // const SERVICE_URL = 'http://service.yoho.yohoops.org/'; | ||
28 | + // const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
29 | + // const API_OLD = 'http://api2.open.yohobuy.com/'; | ||
30 | + // 支付回调地址 | ||
31 | + // const SERVICE_NOTIFY = 'http://service.yoho.cn/'; | ||
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/'; | ||
37 | -// const API_OLD = 'http://test2.open.yohobuy.com/'; | ||
38 | -// // 支付回调地址 | ||
39 | -// const SERVICE_NOTIFY = 'http://testservice.yoho.cn:28077/'; | 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 | + const API_OLD = 'http://test2.open.yohobuy.com/'; | ||
38 | +// 支付回调地址 | ||
39 | + const SERVICE_NOTIFY = 'http://testservice.yoho.cn:28077/'; | ||
40 | 40 | ||
41 | /* 预览环境 */ | 41 | /* 预览环境 */ |
42 | // const API_URL = 'http://preapi.yoho.cn/'; | 42 | // const API_URL = 'http://preapi.yoho.cn/'; |
@@ -44,13 +44,13 @@ class Yohobuy | @@ -44,13 +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 | - | 47 | + |
48 | /** | 48 | /** |
49 | * 登录老接口Api配置 | 49 | * 登录老接口Api配置 |
50 | */ | 50 | */ |
51 | const API_LOGIN_URL = 'http://api.open.yohobuy.com'; | 51 | const API_LOGIN_URL = 'http://api.open.yohobuy.com'; |
52 | const API_LOGIN_URL_TEST = 'http://test.open.yohobuy.com'; | 52 | const API_LOGIN_URL_TEST = 'http://test.open.yohobuy.com'; |
53 | - | 53 | + |
54 | /** | 54 | /** |
55 | * 私钥列表 | 55 | * 私钥列表 |
56 | * | 56 | * |
@@ -63,7 +63,7 @@ class Yohobuy | @@ -63,7 +63,7 @@ class Yohobuy | ||
63 | 'web' => '0ed29744ed318fd28d2c07985d3ba633', | 63 | 'web' => '0ed29744ed318fd28d2c07985d3ba633', |
64 | 'h5' => 'fd4ad5fcfa0de589ef238c0e7331b585', | 64 | 'h5' => 'fd4ad5fcfa0de589ef238c0e7331b585', |
65 | ); | 65 | ); |
66 | - | 66 | + |
67 | 67 | ||
68 | 68 | ||
69 | /** | 69 | /** |
@@ -77,7 +77,7 @@ class Yohobuy | @@ -77,7 +77,7 @@ class Yohobuy | ||
77 | else { | 77 | else { |
78 | return 'web'; | 78 | return 'web'; |
79 | } | 79 | } |
80 | - | 80 | + |
81 | // // 苹果设备 | 81 | // // 苹果设备 |
82 | // if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone')) { | 82 | // if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone')) { |
83 | // return 'iphone'; | 83 | // return 'iphone'; |
@@ -187,7 +187,7 @@ class Yohobuy | @@ -187,7 +187,7 @@ class Yohobuy | ||
187 | curl_setopt($ch, CURLOPT_HEADER, 0); | 187 | curl_setopt($ch, CURLOPT_HEADER, 0); |
188 | curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); | 188 | curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); |
189 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | 189 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
190 | - if ($useGzip) { | 190 | + if ($useGzip) { |
191 | curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); | 191 | curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); |
192 | } | 192 | } |
193 | if (!empty($userAgent)) { | 193 | if (!empty($userAgent)) { |
@@ -230,7 +230,7 @@ class Yohobuy | @@ -230,7 +230,7 @@ class Yohobuy | ||
230 | 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()) |
231 | { | 231 | { |
232 | $ch = curl_init($url); | 232 | $ch = curl_init($url); |
233 | - | 233 | + |
234 | curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); | 234 | curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); |
235 | if (!empty($header)) { | 235 | if (!empty($header)) { |
236 | curl_setopt($ch, CURLOPT_HTTPHEADER, $header); | 236 | curl_setopt($ch, CURLOPT_HTTPHEADER, $header); |
@@ -352,7 +352,7 @@ class Yohobuy | @@ -352,7 +352,7 @@ class Yohobuy | ||
352 | continue; | 352 | continue; |
353 | } | 353 | } |
354 | $result[$name] = $response['data']; | 354 | $result[$name] = $response['data']; |
355 | - } | 355 | + } |
356 | else { | 356 | else { |
357 | $result[$name] = $response; | 357 | $result[$name] = $response; |
358 | } | 358 | } |
@@ -496,7 +496,7 @@ class Yohobuy | @@ -496,7 +496,7 @@ class Yohobuy | ||
496 | 496 | ||
497 | return $result; | 497 | return $result; |
498 | } | 498 | } |
499 | - | 499 | + |
500 | /** | 500 | /** |
501 | * 获取用户User-Agent | 501 | * 获取用户User-Agent |
502 | * @return bool | 502 | * @return bool |
@@ -508,7 +508,7 @@ class Yohobuy | @@ -508,7 +508,7 @@ class Yohobuy | ||
508 | } | 508 | } |
509 | return $_SERVER['HTTP_USER_AGENT']; | 509 | return $_SERVER['HTTP_USER_AGENT']; |
510 | } | 510 | } |
511 | - | 511 | + |
512 | /** | 512 | /** |
513 | * 判断是否手机 | 513 | * 判断是否手机 |
514 | * @return bool | 514 | * @return bool |
web-static/dist/yohobuy/4.6.0/index-debug.js
0 → 100644
This diff could not be displayed because it is too large.
web-static/dist/yohobuy/4.6.0/index.css
0 → 100644
This diff could not be displayed because it is too large.
web-static/dist/yohobuy/4.6.0/index.js
0 → 100644
This diff could not be displayed because it is too large.
web-static/dist/yohobuy/4.6.0/lib.js
0 → 100644
This diff could not be displayed because it is too large.
-
Please register or login to post a comment