diff --git a/卡券.md b/卡券.md index 3be4c5e..b8078be 100644 --- a/卡券.md +++ b/卡券.md @@ -30,6 +30,14 @@ $card = new Card($appId, $secret); + `boolean updateCode($code, $newCode, $cardId)` 更新 code; + `boolean disable($code, $cardId = null)` 废弃卡券,失效,将用户的卡券设置为失效状态; + `string getRealCode($encryptedCode)` code 解码; ++ `array attachExtension($cardId, array $ext = array())` 返回用于批量添加到卡包的 `card_list` 项, ex: + + ```json + { + "card_id": "po_2Djks4-yP5PGtgGY4GkbAIIt0", + "card_ext": "{\"code\":\"\",\"openid\":\"\",\"timestamp\":\"1402057159\",\"signature\":\"017bb17407c8e 0058a66d72dcc61632b70f511ad\"}" + } + ``` ### 相关文档