| @@ 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. |
|
| @@ 466-475 (lines=10) @@ | ||
| 463 | * |
|
| 464 | * @return array |
|
| 465 | */ |
|
| 466 | public function lists($offset = 0, $count = 10, $statusList = 'CARD_STATUS_VERIFY_OK') |
|
| 467 | { |
|
| 468 | $params = [ |
|
| 469 | 'offset' => $offset, |
|
| 470 | 'count' => $count, |
|
| 471 | 'status_list' => $statusList, |
|
| 472 | ]; |
|
| 473 | ||
| 474 | return $this->parseJSON('json', [self::API_LIST_CARD, $params]); |
|
| 475 | } |
|
| 476 | ||
| 477 | /** |
|
| 478 | * 更改卡券信息接口 and 设置跟随推荐接口. |
|