省钱卡

## 获取省钱卡列表 ### 请求地址 ``` http://site.wan911.com/api/box/ ``` ### 请求参数 | 参数名 | 类型 | 说明 | 是否必填 | |--------|-----|------|---------| | active_class | string | 固定值:MoneySavingCardPage| 是 | | active_method | string | 固定值:Get | 是 | ### 返回值 ``` json { "IsSuccess":true, "Message":"成功", "ClientData":[{ "xy_id":1000,//卡id "xy_name":"xxx",//卡名称 "xy_price":100,//原价 "xy_discount":90,//折扣价 "xy_earn":100,//赚取 "xy_eneryday":100,//每日可领取 "xy_today":100,//购买后立即领取 "xy_cycle":30,//周期 "xy_game_discount":30,//游戏折扣(只用于18k定制参数) }], "Total":0 } ``` ## 购买省钱卡 ### 请求地址 ``` http://site.wan911.com/api/box/ ``` ### 请求参数 | 参数名 | 类型 | 说明 | 是否必填 | |--------|-----|------|---------| | active_class | string | 固定值:MoneySavingCardPage| 是 | | active_method | string | 固定值:Buy | 是 | | uid | int | 用户编号 | 是 | | paytype | string | 支付方式 | 是 | | cardid | int | 会员卡id | 是 | ### 返回值 ``` json { "IsSuccess":true, "Message":"成功", "ClientData":xxx,//form 表单 "Total":0 } ``` ## 签到 ### 请求地址 ``` http://site.wan911.com/api/box/ ``` ### 请求参数 | 参数名 | 类型 | 说明 | 是否必填 | |--------|-----|------|---------| | active_class | string | 固定值:MoneySavingCardPage| 是 | | active_method | string | 固定值:Receive | 是 | | uid | int | 用户编号 | 是 | | time | int | 时间戳 | 是 | | sign | int | md5(time#key) | 是 | ### 返回值 ``` json { "IsSuccess":true, "Message":"成功", "ClientData":xxx, "Total":0 } ``` ## 获取信息 ### 请求地址 ``` http://site.wan911.com/api/box/ ``` ### 请求参数 | 参数名 | 类型 | 说明 | 是否必填 | |--------|-----|------|---------| | active_class | string | 固定值:MoneySavingCardPage| 是 | | active_method | string | 固定值:GetRecords | 是 | | uid | int | 用户编号 | 是 | ### 返回值 ``` json { "IsSuccess":true, "Message":"成功", "ClientData":{ "card_status":true,//是否购买省钱卡 "receive_status":true,//今日是否签到 "xy_name":"xxx",//卡名称 "xy_earn":100,//赚取 "xy_eneryday":100,//每日可领取 "xy_today":100,//购买后立即领取 "xy_cycle":30,//周期 "failure_time":"xxxx",//到期时间 "records":[{ "xy_remark":"xxx",//备注 "xy_value":100,//领取数量 "created_time":"xxx",//时间 }] } "Total":0 } ``` ## 获取支付结果 ### 请求地址 ``` http://site.wan911.com/api/box/ ``` ### 请求参数 | 参数名 | 类型 | 说明 | 是否必填 | |--------|-----|------|---------| | active_class | string | 固定值:MoneySavingCardPage| 是 | | active_method | string | 固定值:OrderStatus | 是 | | orderid | string | 订单号 | 是 | ### 返回值 ``` json { "IsSuccess":true, //true 已支付 false 未支付 "Message":"成功", "ClientData":"", "Total":0 } ```