简要描述:
请求域名:
请求URL:
GET: plugin.video-demand.api.video-course-goods.get-course-goods-detail
参数:
参数名 |
是否必须 |
类型 |
说明 |
goods_id |
是 |
int |
商品ID |
chapter_id |
否 |
int |
章节ID,默认为第一个章节ID |
返回示例:
正确时返回:
{
result: 1,
msg: "成功",
data: {
id: 12,
goods_id: "47",
is_course: "1",
lecturer_id: "2",
is_reward: "1",
see_levels: "0,1",
course_chapter_num: 4,
watch: 2,
is_try: 1,
try_time: 120,
pushGoods: [
{
id: 8,
title: "测试复制商品-111",
thumb: "http://test.ysv2.com/attachment/images93wR8.jpg",
price: "100.00"
}
],
has_one_goods: {
id: 47,
title: "111测试商品 勿删111111",
thumb: "http://dev-yanglei.yunzshop.com/UtF262cMuYi.jpg",
price: "130.00",
content: "<p>商品描述</p>"
"has_one_share" : [
{
id: 12,
goods_id: 150,
need_follow: 1,
no_follow_message: "必须关注",
follow_message: "",
share_title: "美女",
share_thumb: "",
share_desc: "",
},
]
},
has_many_course_chapter: [
{
id: 4,
chapter_name: "章节名称1",
course_id: "12",
video_address: "www.111.com",
is_audition: "1"
},
{
id: 10,
chapter_name: "章节名称2",
course_id: "12",
video_address: "www.111.com",
is_audition: "0"
}
],
has_one_lecturer: {
id: 2,
member_id: "8",
real_name: "4444",
mobile: "312313",
has_one_member: {
uid: 8,
avatar: "http://wx.qlogo.cn/mmopen/iaKta9qX6Ea1JhkHqu/132"
}
}
has_many_dig_chapter: [
{
id: 5,
course_goods_id: 16,
chapter_name: "1",
has_many_chapter: [
{
id: 12,
course_id: 16,
dig_chapter_id: 5,
chapter_name: "1-1",
is_audition: 0
},
{
id: 13,
course_id: 16,
dig_chapter_id: 5,
chapter_name: "1-2",
is_audition: 0
},
{
id: 14,
course_id: 16,
dig_chapter_id: 5,
chapter_name: "1-3",
is_audition: 0
}
]
},
{
id: 6,
course_goods_id: 16,
chapter_name: "2",
has_many_chapter: [
{
id: 15,
course_id: 16,
dig_chapter_id: 6,
chapter_name: "2-1",
is_audition: 0
},
{
id: 16,
course_id: 16,
dig_chapter_id: 6,
chapter_name: "2-2",
is_audition: 0
}
]
}
]
}
}
错误时返回:
{
result: 0,
msg: "失败",
data: [ ]
}
返回参数说明:
参数名 |
类型 |
说明 |
goods_id |
int |
商品ID |
is_course |
int |
商品是否开启视频点播 ,0:未开启、1:开启 |
lecturer_id |
int |
讲师ID |
is_reward |
int |
是否开启打赏,0:未开启、1:开启 |
course_chapter_num |
int |
课程章节数 |
watch |
int |
观看权限,0:未获得观看权限、1、免费试看章节、2、等级权限、3、购买权限 |
pushGoods |
array |
推荐商品 |
has_one_goods |
array |
商品信息 |
has_many_dig_chapter |
array |
大章信息 |
has_many_dig_chapter.has_many_chapter |
array |
章节信息 |
has_one_lecturer |
array |
讲师信息 |
has_one_share |
array |
分享关注 |
is_try |
int |
是否开启试看,0:关闭、1:开启 |
try_time |
int |
试看时长,单位:秒 |
推荐商品说明:
参数名 |
类型 |
说明 |
title |
string |
商品名称 |
thumb |
string |
图片 |
price |
string |
价格 |
商品说明:
参数名 |
类型 |
说明 |
title |
string |
商品名称 |
thumb |
string |
图片 |
price |
string |
价格 |
大章说明:
参数名 |
类型 |
说明 |
id |
int |
大章节ID |
chapter_name |
string |
大章节名称 |
章节说明:
参数名 |
类型 |
说明 |
id |
int |
章节ID |
chapter_name |
string |
章节名称 |
is_audition |
int |
0:章节,1、免费试看章节 |
讲师说明:
参数名 |
类型 |
说明 |
id |
int |
章节ID |
real_name |
string |
讲师姓名 |
mobile |
string |
手机 |
has_one_member |
array |
讲师会员信息 |
avatar |
string |
讲师会员头像 |
关联分享说明 has_one_share[]:
参数名 |
类型 |
说明 |
id |
int |
分享ID |
goods_id |
int |
商品ID |
need_follow |
int |
强制关注 1是 0否 |
no_follow_message |
string |
未关注提示 |
follow_message |
string |
关注引导信息(url) |
share_title |
string |
分享标题 |
share_thumb |
string |
分享图片 |
share_desc |
string |
分享描述 |
备注: