mirror of
https://github.com/w7corp/easywechat.git
synced 2025-02-02 02:34:22 +00:00
补充文档
parent
d7b9f2a64b
commit
1e542042ce
8
卡券.md
8
卡券.md
@ -30,6 +30,14 @@ $card = new Card($appId, $secret);
|
|||||||
+ `boolean updateCode($code, $newCode, $cardId)` 更新 code;
|
+ `boolean updateCode($code, $newCode, $cardId)` 更新 code;
|
||||||
+ `boolean disable($code, $cardId = null)` 废弃卡券,失效,将用户的卡券设置为失效状态;
|
+ `boolean disable($code, $cardId = null)` 废弃卡券,失效,将用户的卡券设置为失效状态;
|
||||||
+ `string getRealCode($encryptedCode)` code 解码;
|
+ `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\"}"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### 相关文档
|
### 相关文档
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user