Skip to content

Commit

Permalink
Merge pull request #132 from tianyong90/2.1
Browse files Browse the repository at this point in the history
卡券类批量获取卡券ID方法支持仅获取指定状态卡券
  • Loading branch information
overtrue committed Oct 21, 2015
2 parents e6e305a + 6f462ad commit 0ec0d4b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Wechat/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ class Card
const TYPE_LUCKY_MONEY = 'LUCKY_MONEY'; // 红包
const TYPE_MEETING_TICKET = 'MEETING_TICKET'; // 会议门票

const CARD_STATUS_NOT_VERIFY = 'CARD_STATUS_NOT_VERIFY' ; // 待审核
const CARD_STATUS_VERIFY_FAIL = 'CARD_STATUS_VERIFY_FAIL'; //审核失败
const CARD_STATUS_VERIFY_OK = 'CARD_STATUS_VERIFY_OK'; //通过审核
const CARD_STATUS_USER_DELETE = 'CARD_STATUS_USER_DELETE'; //卡券被商户删除
const CARD_STATUS_USER_DISPATCH = 'CARD_STATUS_USER_DISPATCH'; //在公众平台投放过的卡券

const API_CREATE = 'https://api.weixin.qq.com/card/create';
const API_DELETE = 'https://api.weixin.qq.com/card/delete';
const API_GET = 'https://api.weixin.qq.com/card/get';
Expand Down Expand Up @@ -226,14 +232,16 @@ public function update($cardId, $type, array $base = array(), array $data = arra
*
* @param int $offset
* @param int $count
* @param array $statusList
*
* @return array
*/
public function lists($offset = 0, $count = 10)
public function lists($offset = 0, $count = 10, $statusList = array())
{
$params = array(
'offset' => $offset,
'count' => $count,
'status_list' => $statusList
);

$result = $this->http->jsonPost(self::API_LIST, $params);
Expand Down

0 comments on commit 0ec0d4b

Please sign in to comment.