From 1e542042cedff68f1c766c3125787f2e477e3326 Mon Sep 17 00:00:00 2001 From: overtrue Date: Wed, 6 May 2015 16:34:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 卡券.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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\"}" + } + ``` ### 相关文档