callmez\wechat\sdk\Wechat::getBatchCards PHP Method

getBatchCards() public method

得到批量查询的卡券(获取卡券列表)
public getBatchCards ( integer $offset, integer $count = 50 ) : boolean
$offset integer 起始偏移量
$count integer 需要查询的卡片的数量(数量最大 50)
return boolean
    public function getBatchCards($offset = 0, $count = 50)
    {
        $result = $this->httpPost(static::WECHAT_GET_BATCH_CARD_URL . 'access_token=' . $this->getAccessToken(), ['offset' => $offset, 'count' => $count]);
        return isset($result['card_id_list']) ? $result['card_id_list'] : false;
    }
Wechat