简要描述:

  • 视频点播-会员中心入口

请求域名:

  • http://test.yunzshop.com

请求URL:

GET: plugin.video-demand.api.video-course-goods.get-dig-chapter

参数:

参数名 是否必须 类型 说明
course_id int 商品详情id

正确时返回:

{
  "result": 1,
  "msg": "ok",
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 16,
        "course_goods_id": 64,
        "chapter_name": "章节1",
        "has_many_chapter": [
          {
            "id": 19,
            "course_id": 64,
            "dig_chapter_id": 16,
            "chapter_name": "小节1",
            "is_audition": 0
          }
        ]
      },
      {
        "id": 17,
        "course_goods_id": 64,
        "chapter_name": "章节2",
        "has_many_chapter": [
          {
            "id": 32,
            "course_id": 64,
            "dig_chapter_id": 17,
            "chapter_name": "1",
            "is_audition": 0
          }
        ]
      }
    ],
    "first_page_url": "https://dev15.yunzmall.com/addons/yun_shop/api.php?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://dev15.yunzmall.com/addons/yun_shop/api.php?page=1",
    "next_page_url": null,
    "path": "https://dev15.yunzmall.com/addons/yun_shop/api.php",
    "per_page": 15,
    "prev_page_url": null,
    "to": 9,
    "total": 9
  },
  }

返回参数说明:

参数名 类型 说明
id int 章id
chapter_name string 章名称
has_many_chapter array 节数组

has_many_chapter参数说明:

参数名 类型 说明
id int 节id
chapter_name string 节名称
is_audition int 是否试听

错误时返回:

{
result: 0,
msg: "失败",
data: [ ]
}

备注:

  • 更多返回错误代码请看首页的错误代码描述