| @@ 229-238 (lines=10) @@ | ||
| 226 | * |
|
| 227 | * @return array |
|
| 228 | */ |
|
| 229 | public function lists($type, $offset = 0, $count = 20) |
|
| 230 | { |
|
| 231 | $params = [ |
|
| 232 | 'type' => $type, |
|
| 233 | 'offset' => intval($offset), |
|
| 234 | 'count' => min(20, $count), |
|
| 235 | ]; |
|
| 236 | ||
| 237 | return $this->parseJSON('json', [self::API_LISTS, $params]); |
|
| 238 | } |
|
| 239 | ||
| 240 | /** |
|
| 241 | * Get stats of materials. |
|
| @@ 450-459 (lines=10) @@ | ||
| 447 | * |
|
| 448 | * @return array |
|
| 449 | */ |
|
| 450 | public function lists($offset = 0, $count = 10, $statusList = 'CARD_STATUS_VERIFY_OK') |
|
| 451 | { |
|
| 452 | $params = [ |
|
| 453 | 'offset' => $offset, |
|
| 454 | 'count' => $count, |
|
| 455 | 'status_list' => $statusList, |
|
| 456 | ]; |
|
| 457 | ||
| 458 | return $this->parseJSON('json', [self::API_LIST_CARD, $params]); |
|
| 459 | } |
|
| 460 | ||
| 461 | /** |
|
| 462 | * 更改卡券信息接口 and 设置跟随推荐接口. |
|