简要描述:
- 优惠卷领取页
请求域名:
- http://test.yunzshop.com
请求URL:
GET/&route=coupon.share-coupon.receive
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
order_ids | 是 | string | 订单ids |
返回示例:
正确时返回:
{
{
result: 1,
msg: "share",
data: {
set: {
share_open: "1",
share_limit: "1",
receive_limit: "1",
banner: "http://localhost/attachment/images/6/2018/04/yCfnKfcWicKXATi5fKI0watW8K0tz0.jpg",
share_title: "32",
share_desc: "232"
},
member_name: "Joe",
code: "YES",
mag: "成功",
coupon: {
id: 7,
uniacid: 6,
cat_id: 0,
name: "满100件10",
get_type: 1,
level_limit: -1,
get_max: -1,
use_type: 4,
return_type: 0,
bgcolor: "",
enough: 100,
coupon_type: 0,
time_limit: 0,
time_days: 0,
time_start: "2017-11-29 00:00:00",
time_end: "2017-12-06 00:00:00",
coupon_method: 1,
discount: "0.00",
deduct: "10.00",
back_type: 0,
back_money: "",
back_credit: "",
back_redpack: "",
back_when: 0,
thumb: "",
desc: null,
total: 100,
status: 1,
money: "0.00",
resp_desc: "",
resp_thumb: "",
resp_title: "",
resp_url: "",
credit: 0,
usecredit2: 0,
remark: "",
descnoset: 0,
display_order: 0,
supplier_uid: 0,
getcashier: 0,
cashiersids: null,
cashiersnames: null,
category_ids: null,
categorynames: null,
goods_names: [
"本地123",
"本地的哈哈步步步步"
],
goods_ids: [
"99",
"164"
],
storeids: [
"6",
"8"
],
storenames: [
"Joe的店",
"轻微的"
],
getstore: 0,
getsupplier: 0,
supplierids: null,
suppliernames: null,
createtime: 0,
created_at: "2017-11-29 10:50:34",
updated_at: "2019-01-04 16:55:39",
deleted_at: null,
is_complex: 1,
plugin_id: 0,
api_limit: "适用于下列门店: Joe的店,轻微的"
}
}
}
}
错误时返回:
{
result: 0,
msg: "无分享优惠卷",
data: [ ]
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
banner | string | 图片 |
member_name | string | 领取会员名称 |
code | string | YES、RT |
coupon | obj | 优惠卷数据 |
msg | sting | 信息说明 |
code 等于 YES 就是领取了优惠卷, RT 就是领完了 code 不等于 YES 时 页面显示 msg 的提示信息
备注:
- 更多返回错误代码请看首页的错误代码描述