🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/space/resourceinfo` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |type|是|string|类型(course、homework、exercise、material)|-| |id|是|string|资源id|-| **返回示例** - error ```json { "ret": -1, "msg": "参数错误或者未定义" } ``` - success[exercise] ```json { "ret": 0, "msg": "ok", "id": "1000147211954218321", "tg": "测试移动端展示的习题", "tx": "danxt", "nyd": "0", "dajx": "测试移动端展示的习题", "uid": "1033145308280423464", "status": "0", "collect_total": "0", "dastr": "A", "is_collect": 0 } ``` - success[material] ```json { "ret": 0, "msg": "ok", "id": "1001147211966987269", "title": "移动端13", "serverpath": "http://res-qiniu.12xue.com/", "filetype": ".jpeg", "convert_status": "1", "is_convert": "0", "status": "0", "rootpath": "o_1ar0ih03ntbh10pb119nt451a4uj.jpeg", "collect_total": "0", "type": "photo", "PreTemp": "", "is_collect": 0 } ``` - success[course] ```json { "ret": 0, "msg": "ok", "id": "1004147212082818541", "kclx": "2", "title": "测试移动端课程", "ks": "", "xkid": "1071", "njid": "12588", "bbid": "12590", "sxcid": "12592", "dyid": "12596", "jieid": "12606", "fbrxm": "导入老师导入老师", "fxd": "0", "fxfw": "5", "uid": "1033145308280423464", "ispush": "0", "schoolid": "1033144472596497620", "create_time": "1472120828", "update_time": "1472120828", "status": "0", "areaid": "371402", "sys_code": "1003", "collect_total": "0", "quote_total": "0", "comment_total": "0", "materiallist": { "jksc": [ { "id": "1003147212082831756", "kcid": "1004147212082818541", "zyid": "1000147211954218321", "sksylx": "1", "zyqf": "2", "kclx": null, "xsmc": "测试移动端展示的习题", "tx": "danxt", "sort": "1", "pid": "0", "is_true": "-1", "zyinfo": { "id": "1000147211954218321", "tg": "<p>测试移动端展示的习题</p>", "tx": "danxt", "nyd": "0", "dajx": "测试移动端展示的习题", "uid": "1033145308280423464", "dastr": "1000147211954218321" } }, { "id": "1003147212082836678", "kcid": "1004147212082818541", "zyid": "1001147211966945267", "sksylx": "1", "zyqf": "1", "kclx": null, "xsmc": "移动端12.mp3", "tx": null, "sort": "2", "pid": "0", "is_true": "-1", "zyinfo": { "id": "1001147211966945267", "title": "移动端12", "serverpath": "http://vod-qiniu.12xue.com/", "filetype": ".mp4", "convert_status": "1", "is_convert": "1", "rootpath": "1hYBlPbTr2PauX8Y6rhTnsJgDl8=/Fo94KAzE2rjtzpf3mNPUcjnnGOcT", "type": "video", "PreTemp": "" } }, { "id": "1003147212082841691", "kcid": "1004147212082818541", "zyid": "1001147211966896989", "sksylx": "1", "zyqf": "1", "kclx": null, "xsmc": "移动端1.docx", "tx": null, "sort": "3", "pid": "0", "is_true": "-1", "zyinfo": { "id": "1001147211966896989", "title": "移动端1", "serverpath": "http://res-qiniu.12xue.com/", "filetype": ".docx", "convert_status": "1", "is_convert": "1", "rootpath": "D_z0JDK-03Ckns1jK4g51w6YXq0=/lku_dPC1lfjPwtQdMzKm7QUckczR", "type": "doc", "PreTemp": "www.12xuedev.com/Public/static/pdfjs/viewer.html?file=" } }, { "id": "1003147212082846676", "kcid": "1004147212082818541", "zyid": "1001147211967144746", "sksylx": "1", "zyqf": "1", "kclx": null, "xsmc": "移动端7.ppt", "tx": null, "sort": "4", "pid": "0", "is_true": "-1", "zyinfo": { "id": "1001147211967144746", "title": "移动端7", "serverpath": "http://res-qiniu.12xue.com/", "filetype": ".ppt", "convert_status": "1", "is_convert": "1", "rootpath": "D_z0JDK-03Ckns1jK4g51w6YXq0=/FkmHwZ27iCQlAbh8R3h4KONa7NpM", "type": "doc", "PreTemp": "www.12xuedev.com/Public/static/pdfjs/viewer.html?file=" } } ] }, "is_collect": 0 } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| --: 该接口最后修订时间:2019-03-15 13:25:15 * * * * *