简要描述:
- 用户登录接口
请求域名:
- http://xx.com
请求URL:
GET/route=coupon.coupon.log-view(视图,传值id)
POST/route=coupon.coupon.log(获取数据)
传参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 优惠券id |
couponname | str | 优惠券名称 |
nickname | str | 会员昵称 |
getfrom | int | 领取还是发放 :0商城发放 1用户领取 |
timesearchswtich | str | 领取时间/发放时间 :0 不搜索时间区间 1 搜索时间区间 |
time[start] | int | 开始时间 |
time[end] | int | 结束时间 |
page | int | 分页 |
备注:
返回示例:
正确时返回:
{
result: 1,
msg: "ok",
data: {
list: {
total: 2,
per_page: 15,
current_page: 1,
last_page: 1,
next_page_url: null,
prev_page_url: null,
from: 1,
to: 2,
data: [{
id: 1,
logno: "手动发放优惠券成功: 管理员( ID 为 1 )成功发放 2 张优惠券( ID为 1 )给用户( Member ID 为 2 )",
member_id: "2",
couponid: 1,
getfrom: 0,
createtime: 1499917566,
member: null,
coupon: {
id: 1,
name: "全品类优惠券"
}
},
{
id: 2,
logno: "手动发放优惠券成功: 管理员( ID 为 1 )成功发放 2 张优惠券( ID为 1 )给用户( Member ID 为 2 )",
member_id: "2",
couponid: 1,
getfrom: 0,
createtime: 1499917566,
member: null,
coupon: {
id: 1,
name: "全品类优惠券"
}
}
]
},
couponid: "1"
}
}
错误时返回:
data 返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 领取id |
logno | str | 日志记录 |
member_id | int | 领取会员id |
couponid | int | 优惠卷id |
getfrom | int | 获取途径:1领取 4购物赠送 5会员转赠 6签到奖励 0发放 |
createtime | int | 领取时间 |
member | arr | 会员数据 |
coupon[id] | int | 优惠卷id |
coupon[name] | str | 优惠卷名称 |
备注:
- 更多返回错误代码请看首页的错误代码描述