简要描述:
支付完之后轮询这个接口,成功后跳转申请记录页面
请求域名:
- http://xx.com
请求路由:
POST/&route=plugin.exam-engine.frontend.member-paper.my-score
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|---|---|---|
id | int | 是 | 考试记录id |
返回示例:
正确时返回答题记录:
{
"result": 1,
"msg": "ok",
"data": {
"questions": [
{
"id": 241,
"uniacid": 1,
"stem": "示例题目:Laravel是什么?",
"type": 1,
"options": {
"A": "PHP框架",
"B": "Python库",
"C": "JavaScript框架",
"D": "数据库"
},
"answer": "A",
"score": 10,
"created_at": "2025-09-09 11:44:40",
"updated_at": "2025-09-09 11:44:40",
"type_name": "单选",
"answer_record": {
"id": 3,
"admission_record_id": 5,
"question_id": 241,
"answer": "A",
"is_right": 1
}
},
],
"answer_card": [
241
]
},
}
参数名 | 类型 | 说明 |
---|---|---|
questions | array | 题目列表数组 |
id | int | 题目唯一标识符 |
uniacid | int | 系统关联的业务ID |
stem | string | 题目题干内容 |
type | int | 题目类型(1=单选,2=多选,3=判断,4=实操) |
options | object | 题目选项对象,包含A、B、C、D等选项内容 |
answer | string | 正确答案(单选和判断为单个字母,多选为逗号分隔的多个字母) |
score | int | 题目分值 |
created_at | string | 题目创建时间 |
updated_at | string | 题目最后更新时间 |
type_name | string | 题目类型名称(单选/多选/判断/实操) |
answer_record | mixed | 答题记录,如果没记录说明没有做 |
answer_card | array | 已答题目的ID数组 |
答题记录相关字段 (answer_record对象内):
参数名 | 类型 | 说明 |
---|---|---|
answer | string | 提交的答案答案 |
score | int | 题目分值 |
get_score | int | 题目分值 |
is_right | int | 是否正确,1正确,0错误 |