多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/practice/practiceinfo` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |hwid|是|string|起始套题id|-| **返回示例** - success ```json { "ret": 0, "msg": "ok", "data": { "id": "1505472336118930994",//作业id "title": "研究物质性质的方法和程序",//作业名称 "nyd": 1,//难易度 "complet": 4,//完成状态 "pass": 0,//是否起始套题过关 "version": 7, "xkid": "1", "njid": "52", "bbid": "53", "sxcid": "54", "dyid": "55", "jieid": "57", "answershow": false,//是否显示答案 "material": [//习题详情 { "zyid": "1000147875722881054", "zymc": "判断1:对;<img src=\"http://res-qiniu.12xue.com/am1bdnj5ne1nk5u8sv0qu8rnt114787572044405_big.jpg\" title=\"\" alt=\"\"/>", "id": "1000147875722881054", "tg": "判断1:对;<br/><br/><img src=\"http://res-qiniu.12xue.com/am1bdnj5ne1nk5u8sv0qu8rnt114787572044405_big.jpg\" title=\"\" alt=\"\"/>", "tx": "pdt", "da": "1089147032645933003", "nyd": 4, "dajx": "正确答案有图片:<br/><br/><img src=\"http://res-qiniu.12xue.com//exercises/2016/11/10/tg/am1bdnj5ne1nk5u8sv0qu8rnt114787572216247_big.jpg\"/>", "fbrxm": "课堂一师", "tuid": "1033144585997232687", "schoolid": "1033144472316462450", "res_type": 0, "is_auto": 1, "xkid": "1", "njid": "52", "bbid": "53", "sxcid": "54", "dyid": "55", "jieid": "56", "create_time": 1478757228, "update_time": 1478757228, "options": { "1089147032645933003": { "id": "1089147032645933003", "xtid": "1000147875722881054", "xx": "A", "xxtpdz": null, "description": "对", "sort": 0 }, "1089147032645933004": { "id": "1089147032645933004", "xtid": "1000147875722881054", "xx": "B", "xxtpdz": null, "description": "错", "sort": 0 } }, "daoptions": [ { "id": "1089147032645933003", "xtid": "1000147875722881054", "xx": "A", "xxtpdz": null, "description": "对", "sort": 0 } ], "daxx": [ "A" ], "dastr": "对", "nydstr": "很难", "zsdmc": "化学计算", "txstr": "判断题" } ] } } ``` - error ```json { "ret": -1, "msg": "参数错误或者未定义" } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| |zymc|string|res-qiniu.12xue.com/am1bdnj5ne1nk5u8sv0qu8rnt114787572044405_big.jpg\" title=\"\" alt=\"\"/>",| |tg|string|res-qiniu.12xue.com/am1bdnj5ne1nk5u8sv0qu8rnt114787572044405_big.jpg\" title=\"\" alt=\"\"/>",| |dajx|string|res-qiniu.12xue.com//exercises/2016/11/10/tg/am1bdnj5ne1nk5u8sv0qu8rnt114787572216247_big.jpg\"/>",| --: 该接口最后修订时间:2018-04-04 10:46:13 * * * * *