|
@@ -2,7 +2,7 @@ |
|
@@ -2,7 +2,7 @@ |
2
|
|
2
|
|
3
|
/**
|
3
|
/**
|
4
|
* 有货相关接口类
|
4
|
* 有货相关接口类
|
5
|
- *
|
5
|
+ *
|
6
|
* @name Yohobuy
|
6
|
* @name Yohobuy
|
7
|
* @package library/Api
|
7
|
* @package library/Api
|
8
|
* @copyright yoho.inc
|
8
|
* @copyright yoho.inc
|
|
@@ -35,8 +35,8 @@ class Yohobuy |
|
@@ -35,8 +35,8 @@ class Yohobuy |
35
|
|
35
|
|
36
|
/**
|
36
|
/**
|
37
|
* 私钥列表
|
37
|
* 私钥列表
|
38
|
- *
|
|
|
39
|
- * @var array
|
38
|
+ *
|
|
|
39
|
+ * @var array
|
40
|
*/
|
40
|
*/
|
41
|
private static $privateKeyList = array(
|
41
|
private static $privateKeyList = array(
|
42
|
'android' => 'fd4ad5fcfa0de589ef238c0e7331b585',
|
42
|
'android' => 'fd4ad5fcfa0de589ef238c0e7331b585',
|
|
@@ -84,7 +84,7 @@ class Yohobuy |
|
@@ -84,7 +84,7 @@ class Yohobuy |
84
|
|
84
|
|
85
|
/**
|
85
|
/**
|
86
|
* 取得公共的参数
|
86
|
* 取得公共的参数
|
87
|
- *
|
87
|
+ *
|
88
|
* @return array
|
88
|
* @return array
|
89
|
*/
|
89
|
*/
|
90
|
public static function param()
|
90
|
public static function param()
|
|
@@ -103,7 +103,7 @@ class Yohobuy |
|
@@ -103,7 +103,7 @@ class Yohobuy |
103
|
|
103
|
|
104
|
/**
|
104
|
/**
|
105
|
* 构建URL
|
105
|
* 构建URL
|
106
|
- *
|
106
|
+ *
|
107
|
* @param string $url
|
107
|
* @param string $url
|
108
|
* @param array $data
|
108
|
* @param array $data
|
109
|
* @return string
|
109
|
* @return string
|
|
@@ -179,7 +179,7 @@ class Yohobuy |
|
@@ -179,7 +179,7 @@ class Yohobuy |
179
|
|
179
|
|
180
|
/**
|
180
|
/**
|
181
|
* post提交数据
|
181
|
* post提交数据
|
182
|
- *
|
182
|
+ *
|
183
|
* @param string $url 接口URL
|
183
|
* @param string $url 接口URL
|
184
|
* @param array $data 参数列表
|
184
|
* @param array $data 参数列表
|
185
|
* @param bool $returnJson 控制是否返回json格式数据
|
185
|
* @param bool $returnJson 控制是否返回json格式数据
|
|
@@ -231,7 +231,7 @@ class Yohobuy |
|
@@ -231,7 +231,7 @@ class Yohobuy |
231
|
|
231
|
|
232
|
/**
|
232
|
/**
|
233
|
* 批量调用接口
|
233
|
* 批量调用接口
|
234
|
- *
|
234
|
+ *
|
235
|
* @param array $urlList 接口列表
|
235
|
* @param array $urlList 接口列表
|
236
|
* @param array $options CURL设置项
|
236
|
* @param array $options CURL设置项
|
237
|
* @parma mixed $cache 控制是否启用接口数据的缓存(时间单位为秒). 如3600表示缓存1小时, false表示不缓存
|
237
|
* @parma mixed $cache 控制是否启用接口数据的缓存(时间单位为秒). 如3600表示缓存1小时, false表示不缓存
|
|
@@ -335,7 +335,7 @@ class Yohobuy |
|
@@ -335,7 +335,7 @@ class Yohobuy |
335
|
|
335
|
|
336
|
/**
|
336
|
/**
|
337
|
* rpc调用远程服务(YAR)
|
337
|
* rpc调用远程服务(YAR)
|
338
|
- *
|
338
|
+ *
|
339
|
* @see http://php.net/manual/zh/yar-client.setopt.php
|
339
|
* @see http://php.net/manual/zh/yar-client.setopt.php
|
340
|
* @param string $uri
|
340
|
* @param string $uri
|
341
|
* @param string $method
|
341
|
* @param string $method
|
|
@@ -384,7 +384,7 @@ class Yohobuy |
|
@@ -384,7 +384,7 @@ class Yohobuy |
384
|
|
384
|
|
385
|
/**
|
385
|
/**
|
386
|
* 并行(异步)调用远程服务
|
386
|
* 并行(异步)调用远程服务
|
387
|
- *
|
387
|
+ *
|
388
|
* @see http://php.net/manual/zh/class.yar-concurrent-client.php
|
388
|
* @see http://php.net/manual/zh/class.yar-concurrent-client.php
|
389
|
* @param string $uri
|
389
|
* @param string $uri
|
390
|
* @param string $method
|
390
|
* @param string $method
|