| @@ 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. |
|
| @@ 91-101 (lines=11) @@ | ||
| 88 | * |
|
| 89 | * @return \EasyWeChat\Support\Collection |
|
| 90 | */ |
|
| 91 | public function getDeviceByPageId($pageId, $begin, $count) |
|
| 92 | { |
|
| 93 | $params = [ |
|
| 94 | 'type' => 2, |
|
| 95 | 'page_id' => intval($pageId), |
|
| 96 | 'begin' => intval($begin), |
|
| 97 | 'count' => intval($count), |
|
| 98 | ]; |
|
| 99 | ||
| 100 | return $this->parseJSON('json', [self::API_RELATION_SEARCH, $params]); |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| @@ 486-495 (lines=10) @@ | ||
| 483 | * |
|
| 484 | * @return \EasyWeChat\Support\Collection |
|
| 485 | */ |
|
| 486 | public function lists($offset = 0, $count = 10, $statusList = 'CARD_STATUS_VERIFY_OK') |
|
| 487 | { |
|
| 488 | $params = [ |
|
| 489 | 'offset' => $offset, |
|
| 490 | 'count' => $count, |
|
| 491 | 'status_list' => $statusList, |
|
| 492 | ]; |
|
| 493 | ||
| 494 | return $this->parseJSON('json', [self::API_LIST_CARD, $params]); |
|
| 495 | } |
|
| 496 | ||
| 497 | /** |
|
| 498 | * 更改卡券信息接口 and 设置跟随推荐接口. |
|