You need to sign in or sign up before continuing.
y提交成绩.md 12.7 KB

提交成绩

### 1. 公开课成绩提交限制次数
api-online.test.boxfish.cn/statistic/user/score/{userId}}?access_token=admin   
POST   
示例:api-online.test.boxfish.cn/statistic/user/score/1?access_token=admin  
返回参数:  
{
  "theScore": 300,
  "sumScore": 36636.40017700195
}


### 2. 自主学习提交成绩
api-online.test.boxfish.cn/event/statistic/article/progress?access_token=UC77eM0pZ7  
POST   
body参数:  
  {
  "goal": {
    "toefl": [
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ],
    "primary": [
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ],
    "seniorHigh": [
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ],
    "total": [
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ],
    "juniorHigh": [
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ]
  },
  "record": [
    {
      "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g",
      "score": 14,
      "userId": 1299909,
      "equal": 1,
      "count": 3,
      "original": "in the morning",
      "duration": 1.686477,
      "transcription": "In the morning.",
      "createTime": 1490757225568
    },
    {
      "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g",
      "score": 0,
      "userId": 1299909,
      "equal": 0,
      "count": 0,
      "original": "in the afternoon",
      "duration": 3.917294,
      "transcription": "",
      "createTime": 1490757241313
    },
    {
      "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g",
      "score": 0,
      "userId": 1299909,
      "equal": 0,
      "count": 0,
      "original": "in the afternoon",
      "duration": 1.167468,
      "transcription": "",
      "createTime": 1490757247501
    },
    {
      "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g",
      "score": 28,
      "userId": 1299909,
      "equal": 0.833333,
      "count": 3,
      "original": "Good morning, Kate!",
      "duration": 2.93153,
      "transcription": "Good morning kids.",
      "createTime": 1490757257610
    },
    {
      "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g",
      "score": 24,
      "userId": 1299909,
      "equal": 1,
      "count": 2,
      "original": "Good morning!",
      "duration": 2.175412,
      "transcription": "Good morning.",
      "createTime": 1490757267263
    },
    {
      "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g",
      "score": 0,
      "userId": 1299909,
      "equal": 0,
      "count": 0,
      "original": "Good afternoon, afternoon, afternoon.",
      "duration": 0.585477,
      "transcription": "",
      "createTime": 1490757281740
    }
  ],
  "read": [
    {
      "wordCount": 3,
      "count": 1,
      "userId": 1299909,
      "level": 1,
      "md5": "C9351E2E6FF6E9982DDB6E31D5426B9A"
    },
    {
      "wordCount": 2,
      "count": 1,
      "userId": 1299909,
      "level": 1,
      "md5": "D56BF970B2BD8C25AB544C337531C117"
    }
  ],
  "multiwordList": [
    {
      "count": 2,
      "multiword": "the,the,other,UD"
    },
    {
      "count": 2,
      "multiword": "in,in,prep,UD"
    },
    {
      "count": 4,
      "multiword": "morning,morning,n,NN"
    },
    {
      "count": 5,
      "multiword": "afternoon,afternoon,n,NN"
    },
    {
      "count": 6,
      "multiword": "good,good,adj,JJ"
    },
    {
      "count": 1,
      "multiword": "kate,kate,n,NN"
    },
    {
      "count": 1,
      "multiword": "and,and,conj,UD"
    },
    {
      "count": 1,
      "multiword": "now,now,adv,RB"
    },
    {
      "count": 1,
      "multiword": "mom,mom,n,NN"
    },
    {
      "count": 1,
      "multiword": "you,you,pron,UD"
    },
    {
      "count": 1,
      "multiword": "dad,dad,n,NN"
    },
    {
      "count": 1,
      "multiword": "or,or,conj,UD"
    },
    {
      "count": 1,
      "multiword": "right,right,adv,RB"
    },
    {
      "count": 1,
      "multiword": "say,say,v,VB"
    },
    {
      "count": 1,
      "multiword": "to,to,other,UD"
    },
    {
      "count": 1,
      "multiword": "your,you,pron,UD"
    },
    {
      "count": 1,
      "multiword": "should,should,v,UD"
    },
    {
      "count": 1,
      "multiword": "evening,evening,n,NN"
    },
    {
      "count": 1,
      "multiword": "what,what,pron,UD"
    }
  ],
  "newWord": "19",
  "userId": 1299909,
  "words": [
    {
      "template": 1,
      "summary": {
        "other": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "primary": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "seniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "juniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "toefl": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      }
    },
    {
      "template": 3,
      "summary": {
        "other": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "primary": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "seniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "juniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "toefl": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      }
    },
    {
      "template": 6,
      "summary": {
        "other": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "primary": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "seniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "juniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "toefl": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      }
    },
    {
      "template": 500,
      "summary": {
        "other": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "primary": [
          2,
          2,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "seniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "juniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "toefl": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      }
    },
    {
      "template": 501,
      "summary": {
        "other": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "primary": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "seniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "juniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "toefl": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      }
    },
    {
      "template": 502,
      "summary": {
        "other": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "primary": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "seniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "juniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "toefl": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      }
    },
    {
      "template": 503,
      "summary": {
        "other": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "primary": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "seniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "juniorHigh": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "toefl": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      }
    }
  ],
  "wordCount": 19,
  "listening": [],
  "lessonId": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g",
  "phrase": {
    "phraseListeningDuration": 36.97965532879818,
    "phraseListening": [
      {
        "learningCount": 1,
        "listeningCount": 1
      },
      {
        "learningCount": 1,
        "listeningCount": 1
      }
    ],
    "phraseLearning": [
      2,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ]
  },
  "cr_list": [
    {
      "credit": 18,
      "fact_score": 16.73800086975098,
      "quiz_id": "RHBAZSH001",
      "score": 100,
      "equal": 0.1674000024795532,
      "gold": 9,
      "quiz_type": "ORAL_QUESTION",
      "duration": 3.801000118255615,
      "audio_url": "http://edu.hivoice.cn:80/WebAudio-1.0-SNAPSHOT/audio/play/76738EAB-4CA5-432C-B581-C50C7B0FF123/1490757289661660814/bj",
      "finished_time": 1490757344,
      "channel": "IN_QUESTION"
    }
  ]
}  
返回参数:  
{
    "score": 55335,
    "theScore": 88,
    "learning": {
        "wordCount": 19,
        "readWordCount": 5,
        "recordScore": 84,
        "listeningDuration": 36,
        "multiwordNum": 0,
        "progressTodayStart": "1.756",
        "progressTodayNow": "1.756",
        "todayScore": 88
    },
    "stageLevelOld": 2,
    "stageOld": 1,
    "stageLevelNow": 2,
    "stageNow": 1,
    "progressOld": "1.756",
    "progressNow": "1.756"
}


### 3. 在线上课提交成绩
api-online.test.boxfish.cn/event/statistic/online/progress?access_token=admin  
POST   
x-www-form-urlencoded参数:
lesson_id=L3NoYXJlL3N2bi_kurrmlZnlhavlubTnuqfkuIsgVW5pdDYvMDAyLTEu5ZCM5q2l5ZCs5Yqb77yaQW4gb2xkIG1hbiB0cmllZCB0byBtb3ZlIHRoZSBtb3VudGFpbnMuIDEueGxzeA   
message=message  
level=4  
class_type=SMALL
参数约定:  

//1v1中教课
ONLINE_CHINESE,
//1v1外交课
ONLINE_FOREIGN,
//小班课外教4人
SMALL_FOREIGN_4

返回:
{
  "stageLevelOld": 1,
  "stageOld": 1,
  "stageLevelNow": 1,
  "stageNow": 1,
  "currentProgress": "1.719",
  "userMultiwordCount": 219,
  "recordScore": 68946,
  "theScore": 978,
  "sumScore": 374016.00000429153
}