简要描述:
- 用户登录接口
请求域名:
- http://xx.com
请求URL:
GET/route=coupon.share-coupon.log(视图)
POST/route=coupon.share-coupon.share-log-data(获取数据)
传参数说明:
参数名 | 类型 | 说明 |
---|---|---|
以下数据 需要加数组 | 如:search[coupon_name] | |
coupon_name | str | 优惠券名称 |
share_uid | int | 分享者会员ID |
share_name | str | 分享者会员昵称/姓名/手机号 |
receive_uid | int | 领取者会员ID |
receive_name | str | 领取者会员昵称/姓名/手机号 |
time_search | int | 搜索时间 : 0不搜索 1搜索 |
time[start] | int | 开始时间 |
time[end] | int | 结束时间 |
page | int | 分页 |
备注:
返回示例:
正确时返回:
{
result: 1,
msg: "ok",
data: {
list: {
total: 31,
per_page: 2,
current_page: 1,
last_page: 16,
next_page_url: "http://www.wq.com/web/index.php?page=2",
prev_page_url: null,
from: 1,
to: 2,
data: [{
id: 31,
uniacid: 2,
share_uid: 2636,
receive_uid: 2633,
share_coupon_id: 438,
order_id: 6952,
coupon_id: 91,
coupon_name: "单张使用",
log: "用户( ID 为 43 )通过用户( ID为 810 )的分享领取 1 张优惠卷(ID 为 91 )",
remark: "¥10.00",
created_at: "2020-06-05 14:24:26",
updated_at: "2020-06-05 14:24:26",
share_member: {
uid: 2636,
uniacid: 2,
mobile: "18520632247",
email: "",
groupid: 0,
credit1: "19.20",
credit2: "5606.30",
credit3: "0.00",
credit4: "0.00",
credit5: "0.00",
credit6: "0.00",
createtime: 1542336970,
realname: "hghghg",
nickname: "18520632247",
avatar: "/addons/yun_shop/static/images/photo-mr.jpg",
qq: "",
vip: 0,
gender: 0,
birthyear: 0,
birthmonth: 0,
birthday: 0,
constellation: "",
zodiac: "",
telephone: "",
idcard: "",
studentid: "",
grade: "",
address: "",
zipcode: "",
nationality: "",
resideprovince: "",
residecity: "",
residedist: "",
graduateschool: "",
company: "",
education: "",
occupation: "",
position: "",
revenue: "",
affectivestatus: "",
lookingfor: "",
bloodtype: "",
height: "",
weight: "",
alipay: "",
msn: "",
taobao: "",
site: "",
bio: "",
interest: "",
pay_password: "0",
avatar_image: "http://www.wq.com/addons/yun_shop/static/images/photo-mr.jpg",
username: "18520632247"
},
receive_member: {
uid: 2633,
uniacid: 2,
mobile: "",
email: "39f4b46110de68ca91a1d492afc89086@we7.cc",
groupid: 2,
credit1: "0.00",
credit2: "1.00",
credit3: "0.00",
credit4: "0.00",
credit5: "0.00",
credit6: "0.00",
createtime: 1542176751,
realname: "",
nickname: "合讯网络",
avatar: "http://thirdwx.qlogo.cn/mmopen/JoMbGNWIQsS7Osoo2F4iaP5OAhNURdDicfLUcERd2LHd0PibiaJygUibia8cFDrNNxyolLCcrneETyqYy4O5cwo8yicTFByyCEHxQXX/132",
qq: "",
vip: 0,
gender: 1,
birthyear: 0,
birthmonth: 0,
birthday: 0,
constellation: "",
zodiac: "",
telephone: "",
idcard: "",
studentid: "",
grade: "",
address: "",
zipcode: "",
nationality: "中国",
resideprovince: "北京省",
residecity: "大兴市",
residedist: "",
graduateschool: "",
company: "",
education: "",
occupation: "",
position: "",
revenue: "",
affectivestatus: "",
lookingfor: "",
bloodtype: "",
height: "",
weight: "",
alipay: "",
msn: "",
taobao: "",
site: "",
bio: "",
interest: "",
pay_password: "0",
avatar_image: "https://thirdwx.qlogo.cn/mmopen/JoMbGNWIQsS7Osoo2F4iaP5OAhNURdDicfLUcERd2LHd0PibiaJygUibia8cFDrNNxyolLCcrneETyqYy4O5cwo8yicTFByyCEHxQXX/132",
username: "合讯网络"
}
},
{
id: 30,
uniacid: 2,
share_uid: 810,
receive_uid: 43,
share_coupon_id: 376,
order_id: 6091,
coupon_id: 1,
coupon_name: "优惠券测试",
log: "用户( ID 为 43 )通过用户( ID为 810 )的分享领取 1 张优惠卷(ID 为 1 )",
remark: "¥20.00",
created_at: "2020-03-19 15:49:04",
updated_at: "2020-03-19 15:49:04",
share_member: null,
receive_member: null
}
]
},
search: {
time: {
start: "2020-07-27 15:05:30",
end: "2020-07-27 15:05:30"
}
}
}
}
错误时返回:
data 返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 领取id |
share_uid | int | 分享者id |
receive_uid | int | 领取会员id |
share_coupon_id | int | 分享优惠卷id |
order_id | int | 订单id |
coupon_id | int | 优惠卷id |
coupon_name | str | 优惠卷名称 |
log | str | 分享记录 |
remark | str | 评论 |
share_member | arr | 分享者会员信息 |
receive_member | arr | 领取者会员id |
备注:
- 更多返回错误代码请看首页的错误代码描述