@@ 323-332 (lines=10) @@ | ||
320 | * |
|
321 | * @return \EntWeChat\Support\Collection |
|
322 | */ |
|
323 | public function lists($offset = 0, $count = 10, $statusList = 'CARD_STATUS_VERIFY_OK') |
|
324 | { |
|
325 | $params = [ |
|
326 | 'offset' => $offset, |
|
327 | 'count' => $count, |
|
328 | 'status_list' => $statusList, |
|
329 | ]; |
|
330 | ||
331 | return $this->parseJSON('json', [self::API_LIST_CARD, $params]); |
|
332 | } |
|
333 | ||
334 | /** |
|
335 | * 增加库存. |
@@ 211-220 (lines=10) @@ | ||
208 | * |
|
209 | * @return array |
|
210 | */ |
|
211 | public function lists($type, $offset = 0, $count = 50) |
|
212 | { |
|
213 | $params = [ |
|
214 | 'type' => $type, |
|
215 | 'offset' => intval($offset), |
|
216 | 'count' => min(50, $count), |
|
217 | ]; |
|
218 | ||
219 | return $this->parseJSON('json', [self::API_LISTS, $params]); |
|
220 | } |
|
221 | ||
222 | /** |
|
223 | * Get stats of materials. |