Authored by mingdan.ge

礼品卡

## 1、根据卡号获取礼品卡列表
获取礼品卡消费记录 (**method=app.giftcard.querycode**)
**请求参数**
| 参数名称 | 参数类型 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|-----:|------:|
|uid|int | 否 |500027364 | |礼品卡号 |
|cardCodeList|String | 否 |LPK00500000029,LPK00500000009,121232 | |礼品卡号 |
**注意**,通用的头部没有列出。
**请求示例:**
http://localhost:8090/gateway?method=app.giftcard.querycode&debug=XYZ&cardCodeList=LPK00500000006,LPK00500000019,LPK00500000021&uid=500027364
code为200即为成功,否则是失败。 响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"amount": 600,
"dateStr": "2017.08.31-2017.10.02",
"statusStr": "可使用",
"remainAmount": 100,
"cardCode": "LPK00500000006",
"name": "卡片6",
"activateTime": 1504152032,
"endTime": 1506942032,
"id": 18,
"activateUid": 500027364,
"status": 40
},
{
"amount": 600,
"dateStr": "2017.08.31-2017.10.02",
"statusStr": "可使用",
"remainAmount": 100,
"cardCode": "LPK00500000021",
"name": "卡片21",
"activateTime": 1504152032,
"endTime": 1506942032,
"id": 56,
"activateUid": 500027364,
"status": 40
}
],
"md5": "3821b8603e9e240a7d619c69ebfba96a",
"message": "操作成功"
}
```
\ No newline at end of file
... ...