[TOC=2,3]
* * * * *
* * * * *
* * * * *
## 1. 获取答题列表接口
> 获取答题列表接口
+++
post:/answer/getAnswer
*string:access_token#访问Token【Token附加参数,由前端算法生成】
*string:user_token#用户Token【由登录接口返回的user_token】
*int:member_id#用户id
<<<
success
返回示例:
{
"code": 0,
"msg": "获取成功!",
"data": [
{
"id": 1,
"title": "前途汽车K50提供19寸锻造合金轮王产品配置1", #标题
"options": { #选项
"A": "是",
"B": "否"
},
"answer": "A", #答案
"sell_point": "前途K50采用前后双叉臂式独立悬架,能帮助轮胎在任何时刻都发挥出100%的抓地性能" #卖点
},
{
"id": 2,
"title": "前19寸锻造合金K50提供19寸锻造合金轮19寸锻造合金置2",
"options": {
"A": "是",
"B": "否"
},
"answer": "B",
"sell_point": "前途K50采用前后双叉臂式独立悬架,能帮助轮胎在任何时刻都发挥出100%的抓地性能" #卖点
},
{
"id": 3,
"title": "前途汽车锻造合金1锻造合金轮王产锻造合金锻造合金置3",
"options": {
"A": "是",
"B": "否"
},
"answer": "A/B",
"sell_point": "前途K50采用前后双叉臂式独立悬架,能帮助轮胎在任何时刻都发挥出100%的抓地性能" #卖点
},
{
"id": 4,
"title": "前途汽锻造合金提供19寸锻造合金品配4",
"options": {
"A": "是A",
"B": "否B",
"C": "否C",
"D": "否F"
},
"answer": "C/D",
"sell_point": "前途K50采用前后双叉臂式独立悬架,能帮助轮胎在任何时刻都发挥出100%的抓地性能" #卖点
},
{
"id": 5,
"title": "前途汽车K50提供19寸锻造合金轮王产品配置5",
"options": {
"A": "是",
"B": "否"
},
"answer": "A"
},
{
"id": 6,
"title": "前途汽锻造合金19寸锻造合金轮王产品配置6",
"options": {
"A": "是A",
"B": "否B",
"C": "否C",
"D": "否F"
},
"answer": "C"
},
{
"id": 7,
"title": "前途汽车K50提供19寸锻造合金轮19寸锻造合金产品配置8",
"options": {
"A": "是",
"B": "否"
},
"answer": "A/B"
}
],
"exe_time": "0.249014"
}
<<<
error1
返回示例:
{
"code": 400,
"msg": "您答题次数已经到达最大总次数限制值!",
"exe_time": "0.475027"
}
<<<
error2
返回示例:
{
"code": 1000020,
"msg": "没有答题数据信息",
"exe_time": "0.022000"
}
+++
* * * * *
* * * * *
* * * * *
## 2. 答题提交接口【修改了接口响应,去除积分信息】
> 答题提交接口
+++
post:/answer/submitAnswer
*string:access_token#访问Token【Token附加参数,由前端算法生成】
*string:user_token#用户Token【由登录接口返回的user_token】
*int:member_id#用户id
*string:answer_ids#本次答题的id 多个用英文逗号隔开 1,2,3,4,5,6
*string:success_ids#本次答题成功的id 多个用英文逗号隔开 1,2,3,4,5,6
*string:error_ids#本次答题失败的id 多个用英文逗号隔开 1,2,3,4,5,6
<<<
success
返回示例:
{
"code": 0,
"msg": "恭喜您! 您本次答对题数在前30名内,请拿上您的兑换码至现场工作人员领取礼品!",
"exe_time": "0.402023"
}
<<<
error1
返回示例:
{
"code": 400,
"msg": "很遗憾,您未到达规定的答对题数量!",
"exe_time": "0.241014"
}
<<<