文档
测试

保存第三环节的分数

POST
https://airead.pgcxhy.com.cn/AIread/save_studyScore/

请求参数

参数名
类型
描述
必填
account
String
用户账号
必填
verification
String
签名 生成方式 MD5(account+'AIreaD1.0'+timestamp)
必填
timestamp
int
当前十位数时间戳
必填
number
int
文章ID 例如:10019
必填
score
int
文章得分(计算平均分)
必填
grade
String
等级(等级生成方式见示例)
必填
usersel
String
操作详情(生成方式见示例)
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
errInfo
string
示例:保存成功
必填

说明 / 示例

**状态码** 1. 1 保存成功 2. 11 签名验证失败 **grade生成方式** 平均得分 = [80, 100] grade='A' 平均得分 = [70, 80) grade='B' 平均得分 = [60, 70) grade='C' 平均得分 = [50, 60) grade='D' 平均得分 = [0, 50) grade='F' **usersel生成方式** ``` 示例: usersel = '{"usersel":[{"id":2343,"userSel":"1_Golden eggs."},{"id":2344,"userSel":"1_Not satisfied."},{"id":2346,"userSel":"1_We should cherish what we have."}],"timestamp":"1597205511","spendTime":22}' 解释: { "usersel": [ 该文章中所有题目的用户选择信息 { "id": 2343, 该题目的ID 对应"获取文章内容"接口返回结果中的"result->question->id" 类型:Int "userSel": "1_Golden eggs." 用户的作答信息 使用"_"符号拼接两个元素,第一个元素,如果该题目用户答对,则为"1",答错或者不答为 "0", 第二个元素为用户选择的选型内容,把两个元素使用"_"下划线拼接放到该字段中即可 类型:String 此处注意一:如果选项是音频或者图片,则相关的内容区为音频或者图片的链接 '{"usersel":[{"id":2408,"userSel":"1_https://airead.pgcxhy.com.cn/static/word_audio/dj/jump.mp3"},{"id":2409,"userSel":"0_https://airead.pgcxhy.com.cn/static/options/images/sheep.jpg"},{"id":2410,"userSel":"1_hot"}],"timestamp":"1596991605","spendTime":27}' 此处注意二:如果第三环节中有视频讲解,则此处直接填充音频链接即可,此时"id"内容为""(空字串) 例如 {"id":"","userSel":"https://aiword.oss-cn-hangzhou.aliyuncs.com/airead/video/E04_Making_cookies.mp4"} }, { "id": 2344, "userSel": "1_Not satisfied." }, { "id": 2346, "userSel": "1_We should cherish what we have." } ], "timestamp": "1597205511", 考试时间(十位时间戳)类型:String "spendTime": 22 考试花费的总时间 单位:秒 类型:Int } 注意:当该结构整理好之后,需要再次把该结构转换为上方和"示例中usersel"相同的字符串结构,要去除换行、空格等不必要的字符 ```