多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/teacher/homework` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |id|是|string|作业id|-| **返回示例** - success ```json { "ret": 0, "msg": "ok", "id": "100314416101845624", "xkid": "1071", "njid": "12588", "title": "作业标题", "content": "作业内容", "fbrxm": "chengyanwei", "fxfw": "5", "fxd": "0", "is_attach": "0", "is_push": "1", "uid": "1003144003356986220", "schoolid": "1003143928620085746", "create_time": "1441610184", "update_time": "1441610184", "zys": "102", "status": "0", "areaid": "370613", "sys_code": "1003", "is_mobile": "0", "collect_total": "0", "quote_total": "0", "comment_total": "0", "xkcode": "1071", "xkname": "语文", "njcode": "34_1", "njname": "高一", "color": "yuwen", "count": "0", "materiallist": [ { "id": "1003144161021311293", "hwid": "100314416101845624", "zyid": "1003144160841499015", "zyqf": "2", "ytlx": "1", "zymc": "资源标题<br><img src='http://nftp.12xuedev.com/exercises/2015/09/07/D_1441608416.jpg'> ", "tx": "danxt", "sort": "1", "zyinfo": null }, { "id": "1003144161021328834", "hwid": "100314416101845624", "zyid": "1003144160944259046", "zyqf": "2", "ytlx": "1", "zymc": "资源名称<br><img src='http://nftp.12xuedev.com/exercises/2015/09/07/D_1441609444.jpg'> ", "tx": "danxt", "sort": "3", "zyinfo": { "id": "1003144160944259046", "tg": "习题题干<br><img src='http://nftp.12xuedev.com/exercises/2015/09/07/D_1441609444.jpg'> ", "tx": "danxt", "da": "1003144160944417601", "nyd": "0", "dajx": "<img src=\"http://nftp.12xuedev.com/exercises/2015/09/07/tg/1441609429636wendt.jpg\" title=\"\" alt=\"\"/><img class=\"kfformula\" src=\"http://nftp.12xuedev.com/exercises/2015/09/07/dajx_14416094441.jpg\" data-latex=\"x=\\frac {-b\\pm \\sqrt {{b}^{2}-4ac}} {2a}\"/>", "zsd": null, "zsdid": null, "xkid": "1071", "njid": "12588", "bbid": "12590", "sxcid": "12592", "dyid": "12596", "jieid": "12606", "fbrxm": "chengyanwei", "uid": "1003144003356986220", "sys_code": "1003", "areaid": "370613", "status": "0", "update_time": "1441609442", "create_time": "1441609442", "is_use": "1", "schoolid": "1003143928620085746", "xtcode": "", "sys": "24", "quote_total": "0", "answer_total": "2", "collect_total": "0", "fbrxm_addr": "山东省 烟台市 莱山区 网格中学 ", "fxfw": "5", "fxd": "0", "options": [ { "id": "1003144160944415502", "xtid": "1003144160944259046", "xx": "A", "xxtpdz": "http://nftp.12xuedev.com/exercises/2015/09/07/A_1441609444.jpg", "description": "22222222222222222222222222222222222", "sort": "0" }, { "id": "1003144160944417601", "xtid": "1003144160944259046", "xx": "B", "xxtpdz": "http://nftp.12xuedev.com/exercises/2015/09/07/B_1441609444.jpg", "description": "33333333333333333333333333333333333333", "sort": "0" }, { "id": "1003144160944420215", "xtid": "1003144160944259046", "xx": "C", "xxtpdz": "http://nftp.12xuedev.com/exercises/2015/09/07/C_1441609444.jpg", "description": "3333333333333333333333333333333333333333333333333333333333", "sort": "0" }, { "id": "1003144160944422296", "xtid": "1003144160944259046", "xx": "D", "xxtpdz": "http://nftp.12xuedev.com/exercises/2015/09/07/D_1441609444.jpg", "description": "333333333332222222222222222222222222222222222222222222222222222", "sort": "0" } ], "daoptions": { "1": { "id": "1003144160944417601", "xtid": "1003144160944259046", "xx": "B", "xxtpdz": "http://nftp.12xuedev.com/exercises/2015/09/07/B_1441609444.jpg", "description": "33333333333333333333333333333333333333", "sort": "0" } }, "daxx": [ "B" ], "dastr": "B" } }, ...... ], "materialtzxt": [ { "id": "1003144841566713133", "hwid": "1003144841566787", "zyid": "1003144841561223079", "zyqf": "1", "ytlx": "1", "zymc": "湖南的产业转移.3gp", "tx": null, "sort": "3", "zyinfo": { "id": "1003144841561223079", "fbrxm": "nara", "title": "湖南的产业转移", "serverpath": "http://172.16.205.227/", "serverpath2": null, "savepath": "files/2015-11/", "savename": "ny379yii5d09vohz.mp4", "filetype": ".3gp", "filesize": "3581719", "filecode": "1tsmdxu1pc08gir5", "filetime": null, "convert_status": "0", "is_convert": "1", "is_download": "0", "preview_link": null, "xkid": "705", "njid": "766", "bbid": "767", "sxcid": "768", "dyid": "769", "jieid": "770", "uid": "1003144556551481010", "schoolid": "1003143928620085746", "create_time": "1448415612", "update_time": "1448415612", "attach_id": null, "areaid": "370613", "fl": "1", "sys_code": "1003", "mtype": null, "file_link": null, "status": "0", "sys": "1", "fxfw": "5", "fxd": "0", "errorcount": null, "rootpath": null, "outfilepath": "http://172.16.205.227/files/2015-11/ny379yii5d09vohz.mp4_out/", "weboffice_view": "http://weboffice2.gridinfo.com.cn/op/view.aspx?src=" } }, ...... ], "materialdxa": [ { "id": "1003144841566713133", "hwid": "1003144841566787", "zyid": "1003144841561223079", "zyqf": "1", "ytlx": "1", "zymc": "湖南的产业转移.3gp", "tx": null, "sort": "3", "zyinfo": { "id": "1003144841561223079", "fbrxm": "nara", "title": "湖南的产业转移", "serverpath": "http://172.16.205.227/", "serverpath2": null, "savepath": "files/2015-11/", "savename": "ny379yii5d09vohz.mp4", "filetype": ".3gp", "filesize": "3581719", "filecode": "1tsmdxu1pc08gir5", "filetime": null, "convert_status": "0", "is_convert": "1", "is_download": "0", "preview_link": null, "xkid": "705", "njid": "766", "bbid": "767", "sxcid": "768", "dyid": "769", "jieid": "770", "uid": "1003144556551481010", "schoolid": "1003143928620085746", "create_time": "1448415612", "update_time": "1448415612", "attach_id": null, "areaid": "370613", "fl": "1", "sys_code": "1003", "mtype": null, "file_link": null, "status": "0", "sys": "1", "fxfw": "5", "fxd": "0", "errorcount": null, "rootpath": null, "outfilepath": "http://172.16.205.227/files/2015-11/ny379yii5d09vohz.mp4_out/", "weboffice_view": "http://weboffice2.gridinfo.com.cn/op/view.aspx?src=" } }, ...... ], "pushlist": [ { "id": "1003144167269226808", "hwid": "100314416101845624", "bjid": "1003144003358818247", "xkid": "1071", "njid": "12588", "finish_time": "1443628799", "uid": "1003144003356986220", "create_time": "1441672692" }, { "id": "1003144167286864424", "hwid": "100314416101845624", "bjid": "1003144003358818247", "xkid": "1071", "njid": "12588", "finish_time": "1441641599", "uid": "1003144003356986220", "create_time": "1441600000" } ], "finish_time": "1443628799" } ``` - error ```json { "ret": -1, "msg": "未获取到作业信息", } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| |zymc|string|nftp.12xuedev.com/exercises/2015/09/07/D_1441608416.jpg'> ",| |zymc|string|nftp.12xuedev.com/exercises/2015/09/07/D_1441609444.jpg'> ",| |tg|string|nftp.12xuedev.com/exercises/2015/09/07/D_1441609444.jpg'> ",| |dajx|string|nftp.12xuedev.com/exercises/2015/09/07/dajx_14416094441.jpg\" data-latex=\"x=\\frac {-b\\pm \\sqrt {{b}^{2}-4ac}} {2a}\"/>",| --: 该接口最后修订时间:2017-09-08 16:20:02 * * * * *