@@ 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 |
@@ 475-484 (lines=10) @@ | ||
472 | * |
|
473 | * @return \EasyWeChat\Support\Collection |
|
474 | */ |
|
475 | public function lists($offset = 0, $count = 10, $statusList = 'CARD_STATUS_VERIFY_OK') |
|
476 | { |
|
477 | $params = [ |
|
478 | 'offset' => $offset, |
|
479 | 'count' => $count, |
|
480 | 'status_list' => $statusList, |
|
481 | ]; |
|
482 | ||
483 | return $this->parseJSON('json', [self::API_LIST_CARD, $params]); |
|
484 | } |
|
485 | ||
486 | /** |
|
487 | * 更改卡券信息接口 and 设置跟随推荐接口. |