简要描述:
返回练习信息,如果是已经参与了会有信息回显定位到最新的题目
请求域名:
- http://xx.com
请求路由:
GET/&route=plugin.exam-engine.frontend.task.start
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|---|---|---|
task_id | int | 是 | 练习ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"id": 1,
"uniacid": 1,
"member_id": 33,
"type": 1,
"join_time": 0,
"submit_time": 0,
"duration": 0,
"is_submit": 0,
"is_pass": 0,
"score": 0,
"paper_id": 0,
"question_bank_id": 1,
"created_at": "2025-09-09 14:39:27",
"updated_at": "2025-09-09 14:39:27",
"appointment_id": 0,
"questions": [
{
"id": 32,
"uniacid": 1,
"stem": "吞吞吐吐",
"type": 2,
"options": {
"A": "PHP框架",
"B": "Python库",
"C": "JavaScript框架",
"D": "数据库"
},
"answer": "A,B",
"score": 10,
"created_at": "2025-08-27 16:14:13",
"updated_at": "2025-08-27 16:14:13",
"type_name": "多选",
"answer_record": {
"id": 2,
"admission_record_id": 1,
"question_id": 32,
"answer": "A",
"is_right": 0
}
},
{
"id": 33,
"uniacid": 1,
"stem": "吞吞吐吐",
"type": 3,
"options": {
"A": "PHP框架",
"B": "Python库",
"C": "JavaScript框架",
"D": "数据库"
},
"answer": "A",
"score": 10,
"created_at": "2025-08-27 16:14:13",
"updated_at": "2025-08-27 16:14:13",
"type_name": "判断",
"answer_record": ""
},
{
"id": 35,
"uniacid": 1,
"stem": "吞吞吐吐",
"type": 1,
"options": {
"A": "PHP框架",
"B": "Python库",
"C": "JavaScript框架",
"D": "数据库"
},
"answer": "B",
"score": 10,
"created_at": "2025-08-27 16:14:13",
"updated_at": "2025-08-27 16:14:13",
"type_name": "单选",
"answer_record": ""
},
{
"id": 36,
"uniacid": 1,
"stem": "吞吞吐吐",
"type": 1,
"options": {
"A": "PHP框架",
"B": "Python库",
"C": "JavaScript框架",
"D": "数据库"
},
"answer": "C",
"score": 10,
"created_at": "2025-08-27 16:14:13",
"updated_at": "2025-08-27 16:14:13",
"type_name": "单选",
"answer_record": ""
},
{
"id": 37,
"uniacid": 1,
"stem": "吞吞吐吐",
"type": 1,
"options": {
"A": "PHP框架",
"B": "Python库",
"C": "JavaScript框架",
"D": "数据库"
},
"answer": "D",
"score": 10,
"created_at": "2025-08-27 16:14:13",
"updated_at": "2025-08-27 16:14:13",
"type_name": "单选",
"answer_record": ""
}
],
"answer_card": [
32,
33,
35,
36,
37
]
},
"validate_page": {
"is_bind_mobile": 0,
"invite_page": 0,
"is_invite": 1,
"is_login": 1,
"invite_mobile": 1,
"bind_address": {
"is_bind_address": 0,
"bind_address_type": 0,
"bind_address_page": []
},
"need_video": 0,
"force_bind_car": 0,
"is_auth": 0,
"real_name_auth_scene": [],
"real_name_auth_is_open": 1,
"bind_mobile_page": [],
"is_level_compel": 0
}
}
返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
参数名 | 类型 | 说明 | |
:----------------- | :------ | :----------------------------------------------------------- | |
result | integer | 请求结果状态码,1 表示成功 | |
msg | string | 请求结果消息,"ok" 表示成功 | |
data | object | 主要数据对象 | |
data.id | integer | 数据记录 ID | |
data.type | integer | 类型标识 | |
data.join_time | integer | 参与时间(时间戳格式) | |
data.submit_time | integer | 提交时间(时间戳格式) | |
data.duration | integer | 剩余时间 | |
data.is_submit | integer | 是否已提交(0-否,1-是) | |
data.is_pass | integer | 是否通过(0-否,1-是) | |
data.score | integer | 得分 | |
data.paper_id | integer | 试卷 ID | |
data.question_bank_id | integer | 题库 ID | |
data.appointment_id | integer | 预约 ID | |
data.questions | array | 问题列表 | |
data.questions[].id | integer | 题目 ID | |
data.questions[].uniacid | integer | 题目所属应用 ID | |
data.questions[].stem | string | 题目标题/题干 | |
data.questions[].type | integer | 题目类型(1-单选,2-多选,3-判断) | |
data.questions[].options | object | 题目选项对象(键值对形式,例如: {"A": "选项内容"}) | |
data.questions[].answer | string | 题目正确答案(单选/判断为单个字母,多选为逗号分隔的字母,如 "A,B") | |
data.questions[].score | integer | 题目分值 | |
data.questions[].type_name | string | 题目类型名称(例如: "单选", "多选", "判断") | |
data.questions[].answer_record | object | 答题记录对象(可能为空字符串) | |
data.questions[].answer_record.id | integer | 答题记录 ID | |
data.questions[].answer_record.admission_record_id | integer | 入场记录 ID | |
data.questions[].answer_record.question_id | integer | 题目 ID | |
data.questions[].answer_record.answer | string | 用户提交的答案 | |
data.questions[].answer_record.is_right | integer | 答案是否正确(0-错误,1-正确) | |
data.answer_card | array | 答题卡(题目 ID 列表) |