Weteach-小程序


课时详情-直播

<p><strong>简要描述:</strong> </p> <ul> <li>课时详情-直播</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/api/cli/course/{id}/lesson/{lid}</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>课程ID</td> </tr> <tr> <td style="text-align: left;">lid</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>课时ID</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "result": "success", "data": { "course": { "id": 8, "name": "直播测试", "cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png", "brief": "", "created_at": "2018-11-13 16:13:04", "status": "publish", "code": "3edaae9893d119a1", "total_lesson": 1111, "type": "live", "erect_cover": "http://cdn.weteach.com/20180912171001.png", "list_cover": "http://weteach.ufile.ucloud.com.cn/default-cover-square.png", "quiz_type": "normal", "teachers": [ { "id": 2, "name": "1", "avatar": "http://weteach-stage.ufile.ucloud.com.cn/teacher/1542078074049.png", "brief": "1" } ], "lesson_count": 4, "free_lessons": [], "is_buy": true, "user_status": { "id": 3, "course_id": 8, "user_id": 1, "status": "active", "created_at": "2018-09-06 15:02:56", "org_id": null, "finish_rate": 0, "sort_type": null }, "comment_count": 0 }, "lesson": { "id": 54, "name": "asd", "brief": "dqdqdqdqdqd", "cover": "http://weteach-stage.ufile.ucloud.com.cn/live_detail/1542190645384.png", "deleted_at": null, "created_at": "2018-11-14 18:19:28", "type": "live", "style": "normal", "has_quiz": 0, "start_at": null, "is_free": 0, "materials": [], "recommends": [], "live_detail": { "id": 10, "name": "asd", "brief": null, "ref_type": "Lesson", "ref_id": 54, "type": "private", "status": "living", "vendor": "MTCloud", "start_at": "2018-12-13 00:00:00", "end_at": "2018-12-14 00:00:00", "third_room_id": "195004", "chair_pwd": "555726", "assistant_pwd": "709900", "student_pwd": "813531", "created_at": "2018-11-14 18:23:32", "playback_done": 0, "online_users": null, "account_id": null, "extra": { "access_key": "ca99ce7e3dc29795265e60aac51c4fcb", "access_token": "gN3U2N5MmZlJGZ3YDM1UDZxIjYxYzM2czNwQmYiRDNxwHf81nI0ADM1kTMfRzM3UzN3IiOiUWbh5mciwSM6ISYiwSXbpjIyRHdhJCL4MDMxIDNyQTNxojIl1Wa0dWZyJCLiQDN5QzN4ETNiojIklGeiwSN2AjMxojIklGciwCM6ICZpdmIsQDMwUTOxojIkl2XlNnc192YiwiIiojIyFGdhZXYiwCM6IiclRmbldmIsgzM2QjM0IDN1EjOiUmcpBHelJCL0MzN1czN6ICZp12bvJnIsIibp1GZhJiOiUWbh52ajlmbiwiIyV2c1JiOiUGbvJnIsISMiojIklWdiwSN2AjMxojIkl2XyVmb0JXYwJye", "miniprogramUrl": "https://open.talk-fun.com/room.php?ak=ca99ce7e3dc29795265e60aac51c4fcb", "liveUrl": "http://open.talk-fun.com/room.php?ak=ca99ce7e3dc29795265e60aac51c4fcb", "liveVideoUrl": "http://open.talk-fun.com/liveout.php?code=eyJyb29taWQiOiI3NzU3MzQiLCJzaWduIjoiMTRhNGQ1MzM0YjNiM2JkYjQzNTQ1ZjI5MDFkNDBkMDcifQ==&amp;uid=1&amp;nickname=admin&amp;volume=", "playbackOutUrl": "" } } }, "user_status": { "total_time": 0, "video_time": 0, "finish_rate": 0 }, "comment_count": 0 }, "message": "操作成功", "ct": 1542421039 }</code></pre>

页面列表

ITEM_HTML