WeChat.Card.check_card_code
You're seeing just the function
check_card_code
, go back to WeChat.Card module for more information.
Link to this function
check_card_code(client, card_id, card_code, check_consume \\ true)
Specs
check_card_code( WeChat.client(), card_id(), card_code(), check_consume :: boolean() ) :: WeChat.response()
查询Code - 官方文档
我们强烈建议开发者在调用核销code接口之前调用查询code接口,并在核销之前对非法状态的code(如转赠中、已删除、已核销等)做出处理。