@@ 452-461 (lines=10) @@ | ||
449 | * |
|
450 | * @return array |
|
451 | */ |
|
452 | public function lists($offset = 0, $count = 10, $statusList = 'CARD_STATUS_VERIFY_OK') |
|
453 | { |
|
454 | $params = [ |
|
455 | 'offset' => $offset, |
|
456 | 'count' => $count, |
|
457 | 'status_list' => $statusList, |
|
458 | ]; |
|
459 | ||
460 | return $this->parseJSON('json', [self::API_BATCH_GET, $params]); |
|
461 | } |
|
462 | ||
463 | /** |
|
464 | * 更改卡券信息接口 and 设置跟随推荐接口. |
@@ 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. |