| @@ 230-239 (lines=10) @@ | ||
| 227 | * |
|
| 228 | * @return array |
|
| 229 | */ |
|
| 230 | public function lists($type, $offset = 0, $count = 20) |
|
| 231 | { |
|
| 232 | $params = [ |
|
| 233 | 'type' => $type, |
|
| 234 | 'offset' => intval($offset), |
|
| 235 | 'count' => min(20, $count), |
|
| 236 | ]; |
|
| 237 | ||
| 238 | return $this->parseJSON('json', [self::API_LISTS, $params]); |
|
| 239 | } |
|
| 240 | ||
| 241 | /** |
|
| 242 | * Get stats of materials. |
|
| @@ 473-482 (lines=10) @@ | ||
| 470 | * |
|
| 471 | * @return \EasyWeChat\Support\Collection |
|
| 472 | */ |
|
| 473 | public function lists($offset = 0, $count = 10, $statusList = 'CARD_STATUS_VERIFY_OK') |
|
| 474 | { |
|
| 475 | $params = [ |
|
| 476 | 'offset' => $offset, |
|
| 477 | 'count' => $count, |
|
| 478 | 'status_list' => $statusList, |
|
| 479 | ]; |
|
| 480 | ||
| 481 | return $this->parseJSON('json', [self::API_LIST_CARD, $params]); |
|
| 482 | } |
|
| 483 | ||
| 484 | /** |
|
| 485 | * 更改卡券信息接口 and 设置跟随推荐接口. |
|
| @@ 91-101 (lines=11) @@ | ||
| 88 | * |
|
| 89 | * @return \EasyWeChat\Support\Collection |
|
| 90 | */ |
|
| 91 | public function getDeviceByPageId($page_id, $begin, $count) |
|
| 92 | { |
|
| 93 | $params = [ |
|
| 94 | 'type' => 2, |
|
| 95 | 'page_id' => intval($page_id), |
|
| 96 | 'begin' => intval($begin), |
|
| 97 | 'count' => intval($count), |
|
| 98 | ]; |
|
| 99 | ||
| 100 | return $this->parseJSON('json', [self::API_RELATION_SEARCH, $params]); |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||