🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/student/homework` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |schoolid|否|int|学校id,如果是家长调用,必传|-| |hwid|是|bigint|作业id|-| |uid|是|bigint|用户id|-| |classid|是|bigint|班级id|-| |identitytype|否|string|查看的角色信息(3学生 4家长)|4| **返回示例** - success ```json { "ret": 0, "msg": "ok", "id": "1002143806711951544", "xkid": "2099", "njid": "8829", "title": "测试一次两作业", "content": "", "fbrxm": "门头沟管理员", "fxfw": "2", "fxd": "110109", "is_attach": "0", "is_push": "0", "uid": "1002143804638357831", "schoolid": "1002143804554287036", "create_time": "1438067119", "update_time": "1438067119", "zys": "0", "status": "0", "areaid": "110109", "sys_code": "1002", "is_mobile": "0", "collect_total": "0", "quote_total": "0", "comment_total": null, "xkcode": "2099", "xkname": "数学", "njcode": "21_6", "njname": "六年级", "color": "shuxue", "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" } ], "step": 0, "yxzt": 0, "signature": null, "attach": [ { "url": "http://ftp.12xuedev.com/abc", "ios_url": "http://ftp.12xuedev.com/abc", "name": "附件1" }, ...... ] } ``` - error ```json { "msg": "参数错误或者未定义", "ret": -1 } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |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-04 17:30:02 * * * * *