简要描述:
- 原型:充值
请求URL:
GET/plugin.store-cashier.frontend.store.balance.balance.index
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
store_id | true | int | 门店id |
返回示例:
错误时返回:
{
"result": 0,
"msg": "参数错误",
"data": []
}
{
"result": 0,
"msg": "未开启门店余额插件",
"data": []
}
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"member_balance": "100.00",
"show_activity": 1,
"activity": {
"between_time": "2021-08-25 00:00:00-2021-08-28 00:00:00",
"activity_number": 10,
"discounts": [{
"enough": 100,
"give": 10
}, {
"enough": 200,
"give": 60
}]
},
"pay_buttons": {}
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
member_balance | float | 会员拥有该门店的余额数量 |
show_activity | int | 1:显示活动说明0:不显示活动说明 |
activity | arr | 活动详情 |
activity->between_time | str | 活动时间 |
activity->activity_number | int | 参与次数 |
activity->discounts | arr | 活动优惠 |
activity->discounts->enough | float | 充值满x元 |
activity->discounts->give | float | 赠送x元 |
pay_buttons | arr | 支付按钮数组 |